Example #1
0
 private void EatContour(Glyph glyph, int contourIndex)
 {
     _segments = glyph.GetContourIterator(contourIndex, 0, 0, 0, 0, 1, 1).ToList();
     _segmentIndex = 0;
 }
Example #2
0
 private void SetScanFlags(Glyph glyph, Raster scanFlags, int fx, int fy, int size, int x, int y)
 {
     float scale = (float)(size * scanFlags.Resolution) / (pointsPerInch * _typeface.UnitsPerEm);
     var pixels = scanFlags.Pixels;
     for (int contour = 0; contour < glyph.ContourCount; contour++)
     {
         var aerg = glyph.GetContourIterator(contour, fx, fy, x, y, scale, -scale).ToList();
         foreach (var segment in glyph.GetContourIterator(contour, fx, fy, x, y, scale, -scale))
         {
             segment.FillFlags(scanFlags);
         }
     }
 }