Method CharSize
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
canvasSKCanvasThe SKCanvas on which the character will be measured.
chcharThe character to measure.
countintThe number of times the character is repeated.
fontSKFontThe font used for measurement.
Returns
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
canvasSKCanvasThe SKCanvas on which the character will be measured.
chcharThe character to measure.
fontSKFontThe SKFont used to measure the character.