Class
TextLayoutEngine
ChartForgeX.Typography
Measures and wraps text with the dependency-free raster font engine used by ChartForgeX.
Inheritance
- object
- TextLayoutEngine
Methods
Layout 2 overloads
public static TextLayout Layout(TextContent content, double maximumWidth, TextStyle style, TextWrapMode wrapMode = Word, int? maximumLines = null, TextTrimming trimming = Ellipsis) #Fits immutable styled content with the shared word/grapheme flow policy. No markup or browser measurement is evaluated.
Parameters
- content ChartForgeX.Typography.TextContent
- maximumWidth double
- style ChartForgeX.Typography.TextStyle
- wrapMode ChartForgeX.Typography.TextWrapMode = Word
- maximumLines int? = null
- trimming ChartForgeX.Typography.TextTrimming = Ellipsis
Returns
TextLayoutpublic static TextLayout Layout(string text, double maximumWidth, TextStyle style, TextWrapMode wrapMode = Word, int? maximumLines = null, TextTrimming trimming = Ellipsis) #Wraps and measures text inside a fixed-width region.
Parameters
- text string
- maximumWidth double
- style ChartForgeX.Typography.TextStyle
- wrapMode ChartForgeX.Typography.TextWrapMode = Word
- maximumLines int? = null
- trimming ChartForgeX.Typography.TextTrimming = Ellipsis
Returns
TextLayoutMeasure 2 overloads
public static TextMetrics Measure(TextContent content, TextStyle style) #Measures safe inline content through the same native face/shaping owner used by scene preparation.
Parameters
- content ChartForgeX.Typography.TextContent
- style ChartForgeX.Typography.TextStyle
Returns
TextMetricspublic static TextMetrics Measure(string text, TextStyle style) #Measures text without wrapping.
Parameters
- text string
- style ChartForgeX.Typography.TextStyle
Returns
TextMetrics