Duality.Resources.Font.GetGlyphData C# (CSharp) Method

GetGlyphData() public method

Retrieves information about a single glyph.
public GetGlyphData ( char glyph, GlyphData &data ) : bool
glyph char The glyph to retrieve information about.
data GlyphData A struct holding the retrieved information.
return bool
        public bool GetGlyphData(char glyph, out GlyphData data)
        {
            int glyphId = (int)glyph;
            if (glyphId >= CharLookup.Length)
            {
                data = this.glyphs[0];
                return false;
            }
            else
            {
                data = this.glyphs[CharLookup[glyphId]];
                return true;
            }
        }