Table of Contents

Method CharSize

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

CharSize(SKCanvas, char, int, SKFont)

Returns the size of a sequence of identical characters when drawn with the specified font.

public static SKSize CharSize(this SKCanvas canvas, char ch, int count, SKFont font)

Parameters

canvas SKCanvas

The SKCanvas on which the character will be measured.

ch char

The character to measure.

count int

The number of times the character is repeated.

font SKFont

The font used for measurement.

Returns

SKSize

A SKSize structure representing the width and height of the repeated characters.

CharSize(SKCanvas, char, SKFont)

Measures the size of a single character when drawn using the specified font.

public static SKSize CharSize(this SKCanvas canvas, char ch, SKFont font)

Parameters

canvas SKCanvas

The SKCanvas on which the character will be measured.

ch char

The character to measure.

font SKFont

The SKFont used to measure the character.

Returns

SKSize

A SKSize representing the width and height of the character.