public bool TryGetGlyphDataByCodePoint(int codepoint, out TextureFontGlyphData glyphdata)
 {
     if (!codePointLocations.TryGetValue(codepoint, out glyphdata))
     {
         glyphdata = null;
         return(false);
     }
     return(true);
 }
 public bool TryGetGlyphDataByGlyphIndex(int glyphIndex, out TextureFontGlyphData glyphdata)
 {
     if (!glyphLocations.TryGetValue(glyphIndex, out glyphdata))
     {
         glyphdata = null;
         return(false);
     }
     return(true);
 }
 public void AddGlyph(int codePoint, TextureFontGlyphData glyphData)
 {
     codePointLocations.Add(codePoint, glyphData);
 }
 public void AddGlyph(int glyphIndex, TextureFontGlyphData glyphData)
 {
     glyphLocations.Add(glyphIndex, glyphData);
 }