ResolveFontEventArgsFontRenderMode Property
The mode that will be used to render the font.

Namespace:  TallComponents.PDF.Rasterizer.Fonts
Assembly:  TallComponents.PDF.Rasterizer (in TallComponents.PDF.Rasterizer.dll) Version:
public FontRenderMode FontRenderMode { get; set; }

Property Value

Type: FontRenderMode

If the render mode is RenderAsCurves, a font will be rendered as a sequence of curved lines (a path) that is subsequently filled by a color. This will result in accurate drawing, but it has a few drawbacks, notably it will increase the size of print jobs and WPF conversion results. It is also possible that text looks blurred, or irregular at low resolutions, which is an artefact of mapping vector graphics onto a low resolution device.

To avoid the problems of "curve" rendering, one may specify that a font is rendered by the underlying graphics system of .Net itself (GDI+, or WPF, depending on the situation). The render mode should then be set to RenderAsFont. This will also lead to good results, but only if a font definition is available in a format that .Net can deal with. Usually, this means that the fonts as they occur in a PDF document, have to be mapped onto TrueType font definitions that are installed on the system. The ResolveFont event allows one to do this.

At the moment, we only support RenderAsFont for fonts that are installed on the system (which have Location System). Likewise, RenderAsCurves is only supported for fonts that have Status File. If one specifies the "wrong" rendermode, another ResolveFont event will be raised that corrects this render mode.

See Also