Click or drag to resize

IFontBuilderBuildFont Method

Build a font in the specified font family, size, and style.

Namespace:  Atalasoft.Ocr
Assembly:  Atalasoft.dotImage.Ocr (in Atalasoft.dotImage.Ocr.dll) Version: (.NET 4.5.2, x86)
Font BuildFont(
	FontFamily family,
	float size,
	FontStyle style


Type: System.DrawingFontFamily
The FontFamily to construct.
Type: SystemSingle
The size of the font to construct, in points.
Type: System.DrawingFontStyle
The FontStyle of the font to construct.

Return Value

Type: Font
The constructed font.

It is expected that an implementation of IFontBuilder will only create any unique font once, no matter how many times it is called with the same parameters. Any mechanism for caching is left up to the implementor.

Although it is possible to return a font which is a different FontFamily or FontStyle as that requested, that process is mapping and should be handled by an object that impements the IFontMapper interface.

See Also