public static void SetHintTechnique(this GlyphPathBuilderBase builder, HintTechnique hintTech) { builder.UseTrueTypeInstructions = false; //reset builder.UseVerticalHinting = false; //reset switch (hintTech) { case HintTechnique.TrueTypeInstruction: builder.UseTrueTypeInstructions = true; break; case HintTechnique.TrueTypeInstruction_VerticalOnly: builder.UseTrueTypeInstructions = true; builder.UseVerticalHinting = true; break; case HintTechnique.CustomAutoFit: //custom agg autofit builder.UseVerticalHinting = true; break; } }
public static void Build(this GlyphPathBuilderBase builder, char c, float sizeInPoints) { builder.BuildFromGlyphIndex((ushort)builder.Typeface.LookupIndex(c), sizeInPoints); }