FontMetrics Struct

Summary

A metric that holds information about font specific measurements.
Namespace
Avalonia.Media.TextFormatting
Base Types
  • object
  • ValueType
graph BT Type-->Base0["ValueType"] Base0-->Base1["object"] Type["FontMetrics"] class Type type-node

Syntax

public readonly struct FontMetrics : ValueType

Constructors

Properties

Name Value Summary
Ascent double
Gets the recommended distance above the baseline.
Descent double
Gets the recommended distance under the baseline.
LineGap double
Gets the recommended additional space between two lines of text.
LineHeight double
Gets the estimated line height.
StrikethroughPosition double
Gets a value that indicates the distance of the strikethrough from the baseline.
StrikethroughThickness double
Gets a value that indicates the thickness of the underline.
UnderlinePosition double
Gets a value that indicates the distance of the underline from the baseline.
UnderlineThickness double
Gets a value that indicates the thickness of the underline.