Method SetBuiltinFont
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
SetBuiltinFont(string, string)
Registers an external font for a built-in font slot. The registration is global and takes effect for subsequently created font faces.
public static bool SetBuiltinFont(string fontName, string fontPath)
Parameters
fontNamestringThe slot name, either "sans", "italic" or "uni".
fontPathstringPath to a font file, optionally gzip-compressed. An empty path restores the compiled-in font or clears the slot if it has no compiled-in font.
Returns
- bool
True on success. An unknown slot or a font that cannot be loaded returns false and preserves the registration.