public static void DrawGlyph(RendererContext context) { if (context.Glyph == null) { return; } SimpleGlyph simpleGlyph = context.Glyph.simpleGlyph; if (simpleGlyph == null) { return; } DrawSimpleGlyph(context, simpleGlyph); context.NextGlyph(); }
protected void DrawGlyph(RendererContext context) { if (font.Tables.CFF != null) { CFFRenderer.DrawGlyph(context); return; } if (UseBitmapGlyph && font.Tables.EBLC != null) { if (font.Tables.EBLC.HasSize(FontSize, FontSize)) { EBDTRenderer.DrawGlyph(context); return; } } if (context.Glyph == null) { context.NextGlyph(); return; } if (context.UseInterpreter) { #if DEBUG if (context.Glyph.simpleGlyph != null) { Console.WriteLine( "Decode: \"{0}\"\n{1}", char.ConvertFromUtf32(context.CodePoint), Interpreter.Decode(context.Glyph.simpleGlyph.instructions) ); } #endif context.Glyph = InterpretGlyph(context.Glyph); } if (font.Tables.sbix != null) { SbixRenderer.DrawGlyph(context); } TrueTypeRenderer.DrawGlyph(context); //Console.WriteLine("hMetric " + hMetric); }