CSPspEmu.Hle.Formats.Font.PGF.GetGlyphId C# (CSharp) Method

GetGlyphId() public method

public GetGlyphId ( char Char ) : int
Char char
return int
        public int GetGlyphId(char Char)
        {
            if (Char < Header.FirstGlyph) return -1;
            if (Char > Header.LastGlyph) return -1;
            int glyphPos = (Char - Header.FirstGlyph);
            //Console.WriteLine("Offset: {0}, Size: {1}", glyphPos * header.charMapBpe, header.charMapBpe);
            return (int)BitReader.ReadBitsAt(PackedCharMap, glyphPos * Header.TableCharMapBpe, Header.TableCharMapBpe);
        }