PixelFarm.DrawingGL.TextureFontFace.TextureFontFace C# (CSharp) Method

TextureFontFace() public method

public TextureFontFace ( FontFace nOpenTypeFontFace, string xmlFontInfo, GlyphImage glyphImg ) : System
nOpenTypeFontFace PixelFarm.Drawing.Fonts.FontFace
xmlFontInfo string
glyphImg PixelFarm.Drawing.Fonts.GlyphImage
return System
        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)