SKFontMetrics Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Structure to represent measurements for a font.
public struct SKFontMetrics
public struct SKFontMetrics : IEquatable<SkiaSharp.SKFontMetrics>
- Inheritance
-
SKFontMetrics
- Implements
Properties
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
Equals(Object) | |
Equals(SKFontMetrics) | |
GetHashCode() |
Operators
Equality(SKFontMetrics, SKFontMetrics) | |
Inequality(SKFontMetrics, SKFontMetrics) |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應