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::FontSynthesisStyle;
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::QueryFontMetricsFlags;
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§
- Family
Name - The name of a font family of choice.
- Fixed
Point - Generic template for font property type classes that use a fixed-point
internal representation with
FRACTION_BITS
for the fractional part. - Font
Family - Specifies a prioritized list of font family names or generic family names.
- Font
Family List - A list of font families.
- Font
Language Override - 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).
- Font
Size - The computed value of font-size
- Font
Stretch - A value for the font-stretch property per:
- Font
Style - The computed value of
font-style
. - Font
Weight - A value for the font-weight property per:
Enums§
- Font
Family Name Syntax - Font family names must either be given quoted as strings, or unquoted as a sequence of one or more identifiers.
- Generic
Font Family - A generic font-family name.
- Single
Font Family - A set of faces that vary in weight, width or slope. cbindgen:derive-mut-casts=true
Constants§
- FONT_
STRETCH_ FRACTION_ BITS - font-stretch is a percentage relative to normal.
- FONT_
STYLE_ FRACTION_ BITS - Use a signed 8.8 fixed-point value (representable range -128.0..128)
- FONT_
WEIGHT_ FRACTION_ BITS - font-weight: range 1..1000, fractional values permitted; keywords ‘normal’, ‘bold’ aliased to 400, 700 respectively.
Functions§
Type Aliases§
- Font
Feature Settings - Use FontSettings as computed type of FontFeatureSettings.
- Font
Size Adjust - Preserve the readability of text when font fallback occurs.
- Font
Stretch Fixed Point - This is an alias which is useful mostly as a cbindgen / C++ inference workaround.
- Font
Style Fixed Point - This is an alias which is useful mostly as a cbindgen / C++ inference workaround.
- Font
Variation Settings - The computed value for font-variation-settings.
- Font
Weight Fixed Point - This is an alias which is useful mostly as a cbindgen / C++ inference workaround.
- Line
Height - A computed value for the
line-height
property. - Math
Depth - The computed value of the math-depth property.