Font.SetFontFunctions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| SetFontFunctions(FontFunctions) |
Sets custom font functions for this font. |
| SetFontFunctions(FontFunctions, Object) |
Sets custom font functions for this font with associated user data. |
| SetFontFunctions(FontFunctions, Object, ReleaseDelegate) |
Sets custom font functions for this font with associated user data and a destroy callback. |
SetFontFunctions(FontFunctions)
Sets custom font functions for this font.
public void SetFontFunctions(HarfBuzzSharp.FontFunctions fontFunctions);
Parameters
- fontFunctions
- FontFunctions
The font functions to use.
Remarks
Font functions provide callbacks for glyph metrics and other font information.
Applies to
SetFontFunctions(FontFunctions, Object)
Sets custom font functions for this font with associated user data.
public void SetFontFunctions(HarfBuzzSharp.FontFunctions fontFunctions, object fontData);
Parameters
- fontFunctions
- FontFunctions
The font functions to use.
- fontData
- Object
User data to pass to the font functions.
Remarks
Font functions provide callbacks for glyph metrics and other font information.
Applies to
SetFontFunctions(FontFunctions, Object, ReleaseDelegate)
Sets custom font functions for this font with associated user data and a destroy callback.
public void SetFontFunctions(HarfBuzzSharp.FontFunctions fontFunctions, object fontData, HarfBuzzSharp.ReleaseDelegate destroy);
Parameters
- fontFunctions
- FontFunctions
The font functions to use.
- fontData
- Object
User data to pass to the font functions.
- destroy
- ReleaseDelegate
A delegate to call when the font data is no longer needed.