SKFont Constructors
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 |
|---|---|
| SKFont() |
Creates a new SKFont with the default typeface and size. |
| SKFont(SKTypeface, Single, Single, Single) |
Creates a new SKFont with the specified typeface and settings. |
SKFont()
SKFont(SKTypeface, Single, Single, Single)
Creates a new SKFont with the specified typeface and settings.
public SKFont(SkiaSharp.SKTypeface typeface, float size = 12, float scaleX = 1, float skewX = 0);
Parameters
- typeface
- SKTypeface
The SKTypeface to use, or null for the default typeface.
- size
- Single
The font size in points. The default is 12.
- scaleX
- Single
The horizontal scale factor. The default is 1.
- skewX
- Single
The horizontal skew factor for oblique/italic effect. The default is 0.