예제 #1
0
        private void Init()
        {
            if (mFont != IntPtr.Zero)
            {
                return;
            }

            mFont = VG.vgCreateFont(mFontInfo.Glyphs.Length);

            foreach (var kerning in mFontInfo.Kernings)
            {
                mAdjustmentses.Add(kerning.key, new Adjustments(kerning.x, kerning.y));
            }

            foreach (var glyph in mFontInfo.Glyphs)
            {
                mGlyphDictionary.Add(glyph.glyphIndex, glyph);
            }
        }