public GameUtilsFont(TrueTypeFile trueTypeData) { FontName = trueTypeData.FamilyName; Style = trueTypeData.Style; UnitsPerEm = trueTypeData.UnitsPerEm; glyphDictionary = trueTypeData.GlyphDictionary; ascend = trueTypeData.Ascend; descend = trueTypeData.Descend; lineGap = trueTypeData.LineGap; glyphs = new TriangulatedGlyph[trueTypeData.Glyphs.Length]; for (int i = 0; i < glyphs.Length; i++) glyphs[i] = new TriangulatedGlyph(trueTypeData.Glyphs[i], trueTypeData.GlyphMetrics[i]); }
public GameUtilsFont(TrueTypeFile trueTypeData) { FontName = trueTypeData.FamilyName; Style = trueTypeData.Style; UnitsPerEm = trueTypeData.UnitsPerEm; glyphDictionary = trueTypeData.GlyphDictionary; ascend = trueTypeData.Ascend; descend = trueTypeData.Descend; lineGap = trueTypeData.LineGap; glyphs = new TriangulatedGlyph[trueTypeData.Glyphs.Length]; for (int i = 0; i < glyphs.Length; i++) { glyphs[i] = new TriangulatedGlyph(trueTypeData.Glyphs[i], trueTypeData.GlyphMetrics[i]); } }