public TextureFontFace(FontFace nOpenTypeFontFace, string xmlFontInfo, GlyphImage glyphImg)
{
//for msdf font
//1 font atlas may support mutliple font size
atlasBuilder = new SimpleFontAtlasBuilder();
fontAtlas = atlasBuilder.LoadFontInfo(xmlFontInfo);
fontAtlas.TotalGlyph = glyphImg;
this.nOpenTypeFontFace = nOpenTypeFontFace;
}
public override float GetScale(float pointSize)