Type Alias zng_ext_font::LetterSpacing
source · pub type LetterSpacing = Length;
Expand description
Extra spacing added in between text letters.
Letter spacing is computed using the font data, this unit represents extra space added to the computed spacing.
A “letter” is a character glyph cluster, e.g.: a
, â
, 1
, -
, 漢
.
The Default
value signals that letter spacing can be tweaked when text justification is enabled, all other
values disable automatic adjustments for justification. Relative values are computed from the length of the space ' '
character.
Aliased Type§
enum LetterSpacing {
}
Variants§
Default
The default (initial) value.
Dip(Dip)
The exact length in device independent units.
Px(Px)
The exact length in device pixel units.
Pt(f32)
The exact length in font points.
Factor(Factor)
Relative to the fill length.
Leftover(Factor)
Relative to the leftover fill length.
Em(Factor)
Relative to the font-size of the widget.
RootEm(Factor)
Relative to the font-size of the root widget.
ViewportWidth(Factor)
Relative to the width of the nearest viewport ancestor.
ViewportHeight(Factor)
Relative to the height of the nearest viewport ancestor.
ViewportMin(Factor)
Relative to the smallest of the nearest viewport ancestor’s dimensions.
ViewportMax(Factor)
Relative to the smallest of the nearest viewport ancestor’s dimensions.
DipF32(f32)
The exact length in device independent units, defined using a f32
value.
This value will be rounded to the nearest pixel after layout, but it will be used as is in the evaluation of length expressions.
PxF32(f32)
The exact length in device pixel units, defined using a f32
value.
This value will be rounded to the nearest pixel after layout, but it will be used as is in the evaluation of length expressions.
Expr(Box<LengthExpr>)
Expression.