Initializes font structure
Namespace: OpenCvSharp
Assembly: OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void InitFont( out CvFont font, FontFace fontFace, double hscale, double vscale, double shear, int thickness, LineType lineType )
Parameters
- font
- Type: OpenCvSharpCvFont
font structure initialized by the function. - fontFace
- Type: OpenCvSharpFontFace
Font name identifier. Only a subset of Hershey fonts are supported now. - hscale
- Type: SystemDouble
Horizontal scale. If equal to 1.0f, the characters have the original width depending on the font type. If equal to 0.5f, the characters are of half the original width. - vscale
- Type: SystemDouble
Vertical scale. If equal to 1.0f, the characters have the original height depending on the font type. If equal to 0.5f, the characters are of half the original height. - shear
- Type: SystemDouble
Approximate tangent of the character slope relative to the vertical line. Zero value means a non-italic font, 1.0f means ≈45° slope, etc. thickness Thickness of lines composing letters outlines. The function cvLine is used for drawing letters. - thickness
- Type: SystemInt32
Thickness of the text strokes. - lineType
- Type: OpenCvSharpLineType
Type of the strokes, see cvLine description.
See Also