internal readonly CFF.Cff1GlyphData _cff1GlyphData; //NULL in _onlyLayoutEssMode internal Glyph(CFF.Cff1GlyphData cff1Glyph, ushort glyphIndex) { #if DEBUG this.dbugId = s_debugTotalId++; cff1Glyph.dbugGlyphIndex = glyphIndex; #endif //create from CFF _cff1GlyphData = cff1Glyph; this.GlyphIndex = glyphIndex; }
internal CFF.Cff1GlyphData _cff1GlyphData; //temp internal Glyph(CFF.Cff1Font owner, CFF.Cff1GlyphData cff1Glyph) { #if DEBUG this.dbugId = s_debugTotalId++; #endif this._ownerCffFont = owner; //create from CFF this._cff1GlyphData = cff1Glyph; this.GlyphIndex = cff1Glyph.GlyphIndex; }
//----------- //for CFF1 public static void Read(this IGlyphTranslator tx, CFF.Cff1Font cff1Font, CFF.Cff1GlyphData glyphData, float scale = 1) { CFF.CffEvaluationEngine evalEngine = new CFF.CffEvaluationEngine(); evalEngine.Run(tx, cff1Font, glyphData.GlyphInstructions, scale); }