CSPspEmu.Hle.Modules.libfont.sceLibFont.Font.GetCharInfo C# (CSharp) Method

GetCharInfo() public method

public GetCharInfo ( ushort CharCode ) : FontCharInfo
CharCode ushort
return FontCharInfo
            public FontCharInfo GetCharInfo(ushort CharCode)
            {
                var Glyph = GetGlyph(CharCode);
                var Face = Glyph.Face;

                var Advance = PGF.GetAdvance(Face.AdvanceIndex);

                var FontCharInfo = new sceLibFont.FontCharInfo()
                {
                    BitmapWidth = Face.Width,
                    BitmapHeight = Face.Height,
                    BitmapLeft = Face.Left,
                    BitmapTop = Face.Top,
                    Width = Face.Width,
                    Height = Face.Height,
                    Ascender = Face.Top,
                    Descender = Face.Height - Face.Top,
                    BearingHX = Face.Left,
                    BearingHY = Face.Top,
                    BearingVX = Face.Left,
                    BearingVY = Face.Top,
                    AdvanceH = Advance.Width,
                    AdvanceV = Advance.Height,
                    Unknown = 0,
                };

                return FontCharInfo;
            }