public Font sceFontOpenUserFile(FontLibrary FontLibrary, string FileName, int Mode, uint* ErrorCode) { var FontFileStream = HleIoManager.HleIoWrapper.Open(FileName, Vfs.HleIoFlags.Read, (Vfs.SceMode)Mode); var PGF = new PGF().Load(FontFileStream); var Font = new Font(FontLibrary, PGF); *ErrorCode = 0; return Font; }