PeachDrawing.Text
PeachDrawing.Text.Layout
RunStyle Struct
The look of a run of text in a paragraph.
public readonly record struct RunStyle : System.IEquatable<PeachDrawing.Text.Layout.RunStyle>
Implements System.IEquatable<RunStyle>
| Constructors | |
|---|---|
| RunStyle(Typeface, double, Nullable<ShapeSettings>, Func<Rune,Typeface>, double, double) | The look of a run of text in a paragraph. |
| Properties | |
|---|---|
| Fallback | What to ask for a typeface when Typeface has no glyph for a character (see CreateFallback(TypefaceQuery)), or null to draw the missing-glyph shape. It is asked once for each user-perceived character the face cannot draw, with that character’s first code point, and answers null when it has nothing better; the character and the marks that follow it are then set in the typeface it returns, at the run’s size. Runs are equal only when their fallbacks are the same delegate, and text in runs that differ is shaped and broken separately, so a caller that sets a fallback on many runs should make it once and share it. |
| LetterSpacing | Extra distance after every character, in layout units (CSS letter-spacing); zero for none. It is added once for each cluster of glyphs that stand for one character (a base and its marks, or a ligature), after the last of them. |
| Shape | What to ask of the shaper, or null for the defaults. Its script tag, joining forms and direction are filled in from the text. |
| Size | The size of the em, in the units the layout is measured in. |
| Typeface | The face to set the text in. |
| WordSpacing | Extra distance after every space and no-break space, in layout units (CSS word-spacing); zero for none. Both spacings must be finite. |