PeachBrackets
PeachBrackets
FontDefaults Class
The font defaults the HTML engine falls back to, and the helpers a host’s RenderContext needs to honour CSS font
features: the platform’s default family, the CSS generic family keywords and font-variation-settings.
public static class FontDefaults
Inheritance System.Object → FontDefaults
| Properties | |
|---|---|
| DefaultFamily | The family used when a document names none, or none that is installed or registered. |
| DefaultSizePoints | The size, in points, of the root font when a document does not set one (the CSS medium size). |
| GenericFamilies | The CSS generic font family keywords (serif, sans-serif, monospace, cursive, fantasy, math) with the engine’s generic family each one stands for. system-ui is not among them. |
| Methods | |
|---|---|
| ToAxisSettings(string, double) | Turns an encoded font-variation-settings value, as the engine hands it to a RenderContext, into the axis settings to request from a font set. |