Android.Graphics.Text Namespace
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.
Provides text shaping, measurement, and paragraph line breaking.
Classes
| Name | Description |
|---|---|
| LineBreakConfig |
Specifies the line-break strategies for text wrapping. |
| LineBreakConfig.Builder |
A builder for creating a |
| LineBreakConfig.InterfaceConsts |
Exposes parcelable interface constants inherited by LineBreakConfig. |
| LineBreaker |
Provides automatic line breaking for a <em>single</em> paragraph. |
| LineBreaker.Builder |
Helper class for creating a |
| LineBreaker.ParagraphConstraints |
Line breaking constraints for single paragraph. |
| LineBreaker.Result |
Holds the result of the |
| MeasuredText |
Result of text shaping of the single paragraph string. |
| MeasuredText.Builder |
Helper class for creating a |
| PositionedGlyphs |
Text shaping result object for single style text. |
| TextRunShaper |
Provides conversion from a text into glyph array. |
Enums
| Name | Description |
|---|---|
| BreakStrategy |
Specifies the algorithm used to choose line breaks in a paragraph. |
| HyphenationFrequency |
Specifies the amount of automatic hyphenation used during line breaking. |
| HyphenationMode |
Specifies how a measured-text builder computes hyphenation information. |
| JustificationMode |
Specifies how a line breaker adjusts spacing to justify text. |
| LineBreakHyphenation |
Specifies a line-break configuration's hyphenation preference. |
| LineBreakStyle |
Specifies the line-break rules used by a line-break configuration. |
| LineBreakWordStyle |
Specifies the word-based line-break rules used by a line-break configuration. |
Remarks
Use MeasuredText.Builder to measure a paragraph's styled runs, then use LineBreaker with paragraph constraints to find line breaks. LineBreakConfig supplies line-break preferences.
TextRunShaper shapes a text run into PositionedGlyphs for glyph-level drawing.