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: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
Font BuildFont(
	FontFamily family,
	float size,
	FontStyle style
)

Parameters

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

Return Value

Type: Font
The constructed font.
Remarks

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