Expand description
Computed values for font properties
Re-exports§
pub use crate::values::computed::Length as MozScriptMinSize;
pub use crate::values::specified::font::MozScriptSizeMultiplier;
pub use crate::values::specified::font::FontPalette;
pub use crate::values::specified::font::FontSynthesis;
pub use crate::values::specified::font::FontVariantAlternates;
pub use crate::values::specified::font::FontVariantEastAsian;
pub use crate::values::specified::font::FontVariantLigatures;
pub use crate::values::specified::font::FontVariantNumeric;
pub use crate::values::specified::font::XLang;
pub use crate::values::specified::font::XTextScale;
pub use crate::values::specified::Integer as SpecifiedInteger;
pub use crate::values::specified::Number as SpecifiedNumber;
Macros§
Structs§
- The name of a font family of choice.
- Generic template for font property type classes that use a fixed-point internal representation with
FRACTION_BITS
for the fractional part. - Specifies a prioritized list of font family names or generic family names.
- A list of font families.
- font-language-override can only have a single 1-4 ASCII character OpenType “language system” tag, so we should be able to compute it and store it as a 32-bit integer (see http://www.microsoft.com/typography/otspec/languagetags.htm).
- The computed value of font-size
- A value for the font-stretch property per:
- The computed value of
font-style
. - A value for the font-weight property per:
Enums§
- Font family names must either be given quoted as strings, or unquoted as a sequence of one or more identifiers.
- A generic font-family name.
- A set of faces that vary in weight, width or slope. cbindgen:derive-mut-casts=true
Constants§
- font-stretch is a percentage relative to normal.
- Use a signed 8.8 fixed-point value (representable range -128.0..128)
- font-weight: range 1..1000, fractional values permitted; keywords ‘normal’, ‘bold’ aliased to 400, 700 respectively.
Functions§
Type Aliases§
- Use FontSettings as computed type of FontFeatureSettings.
- Preserve the readability of text when font fallback occurs.
- This is an alias which is useful mostly as a cbindgen / C++ inference workaround.
- This is an alias which is useful mostly as a cbindgen / C++ inference workaround.
- The computed value for font-variation-settings.
- This is an alias which is useful mostly as a cbindgen / C++ inference workaround.
- A computed value for the
line-height
property. - The computed value of the math-depth property.