Edit

Share via


SKFontMetrics Struct

Definition

Structure to represent measurements for a font.

public struct SKFontMetrics : IEquatable<SkiaSharp.SKFontMetrics>
Inheritance
SKFontMetrics
Implements

Properties

Name Description
Ascent

Gets the recommended distance above the baseline.

AverageCharacterWidth

Gets the average character width.

Bottom

Gets the greatest distance below the baseline for any glyph.

CapHeight

Gets the cap height.

Descent

Gets the recommended distance below the baseline.

Leading

Gets the recommended distance to add between lines of text.

MaxCharacterWidth

Gets the max character width.

StrikeoutPosition

Gets the position of the bottom of the strikeout stroke relative to the baseline.

StrikeoutThickness

Gets the thickness of the strikeout.

Top

Gets the greatest distance above the baseline for any glyph.

UnderlinePosition

Gets the position of the top of the underline stroke relative to the baseline.

UnderlineThickness

Gets the thickness of the underline.

XHeight

Gets the height of an 'x' in px.

XMax

Gets the maximum bounding box x value for all glyphs.

XMin

Gets the minimum bounding box x value for all glyphs.

Methods

Name Description
Equals(Object)

Determines whether the specified object is equal to the current instance.

Equals(SKFontMetrics)

Determines whether the specified SKFontMetrics is equal to the current instance.

GetHashCode()

Returns the hash code for this instance.

Operators

Name Description
Equality(SKFontMetrics, SKFontMetrics)

Determines whether two specified instances are equal.

Inequality(SKFontMetrics, SKFontMetrics)

Determines whether two specified instances are not equal.

Applies to