Beispiel #1
0
        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]);
        }
Beispiel #2
0
        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]);
            }
        }