Example #1
0
 public FontInstance(IFormattingContext context, string fontName, float pointSize, StretchyGlyphIndices[] glyphIndices)
 {
     cachedAreas        = null;
     PointSize          = pointSize;
     FontHandle         = context.CreateFont(pointSize, false, 500, fontName);
     stretchyAttributes = new StretchyGlyphAttributes[glyphIndices.Length];
     for (int i = 0; i < stretchyAttributes.Length; i++)
     {
         stretchyAttributes[i] = new StretchyGlyphAttributes(
             context, FontHandle, ref glyphIndices[i]);
     }
 }
Example #2
0
    public FontInstance(IFormattingContext context, string fontName, float pointSize, StretchyGlyphIndices[] glyphIndices)
		{
			cachedAreas = null;
			PointSize = pointSize;
			FontHandle = context.CreateFont(pointSize, false, 500, fontName);
			stretchyAttributes = new StretchyGlyphAttributes[glyphIndices.Length];
			for(int i = 0; i < stretchyAttributes.Length; i++)
			{
				stretchyAttributes[i] = new StretchyGlyphAttributes(
					context, FontHandle, ref glyphIndices[i]);
			}
		}