Table of Contents

Class SkiaFontDefaults

Namespace
Alternet.Skia
Assembly
Alternet.UI.Common.dll

Provides default values for SkiaSharp font properties used when converting a native font to an SKFont.

public static class SkiaFontDefaults
Inheritance
SkiaFontDefaults

Remarks

This class defines static fields that represent default settings for various SKFont properties, such as scaling, subpixel precision, hinting, and edging. These defaults are applied during the conversion process from a native font to an SKFont to ensure consistent rendering behavior.

Fields

Edging

Gets or sets default value for Edging which is used when font is converted to SKFont.

ForceAutoHinting

Gets or sets default value for ForceAutoHinting which is used when font is converted to SKFont.

Hinting

Gets or sets default value for Hinting which is used when font is converted to SKFont.

Subpixel

Gets or sets default value for Subpixel which is used when font is converted to SKFont.

TextScaleX

Gets or sets default value for ScaleX which is used when font is converted to SKFont.

Methods

AssignDefaults(SKFont)

Assigns default settings to the specified SKFont instance.