SKPaint.GetFontMetrics(SKFontMetrics, Single) Method

Definition

Returns the font metrics and line spacing for the current typeface.

public float GetFontMetrics (out SkiaSharp.SKFontMetrics metrics, float scale = 0);

Parameters

metrics
SKFontMetrics

The font metrics for the current typeface.

scale
Single

If not 0, return width as if the canvas were scaled by this value.

Returns

Returns the recommended spacing between lines.

Applies to