Exemplo n.º 1
0
 public void ReadShapes(IGlyphTranslator tx)
 {
     if (_useAutoHint)
     {
         //read from our auto hint fitoutline
         //need scale from original.
         _fitOutline.ReadOutput(tx, _recentPixelScale);
     }
     else
     {
         //read output from glyph points
         tx.Read(this._outputGlyphPoints, this._outputContours, _recentPixelScale);
     }
 }
Exemplo n.º 2
0
 public override void ReadShapes(IGlyphTranslator tx)
 {
     if (this.UseTrueTypeInstructions)
     {
         base.ReadShapes(tx);
         return;
     }
     if (this.UseVerticalHinting)
     {
         //read from our auto hint fitoutline
         //need scale from original.
         float toPixelScale = Typeface.CalculateToPixelScale(this.RecentFontSizeInPixels);
         if (toPixelScale < 0)
         {
             toPixelScale = 1;
         }
         _fitOutline.ReadOutput(tx, toPixelScale);
     }
     else
     {
         base.ReadShapes(tx);
     }
 }