Expand description
Specified values for font properties
Re-exportsยง
pub use crate::values::computed::font::FontLanguageOverride;
Macrosยง
- system_
font_ ๐methods
Structsยง
- Font
Palette - Allows authors to choose a palette from those supported by a color font (and potentially @font-palette-values overrides).
- Font
Variant Alternates - List of Variant Alternates
- Font
Variant East Asian - Variants for east asian variant
- Font
Variant Ligatures - Variants of ligatures
- Font
Variant Numeric - Variants of numeric values
- Keyword
Info - Additional information for keyword-derived font sizes.
- MozScript
MinSize - Specifies the minimum font size allowed due to changes in scriptlevel. Ref: https://wiki.mozilla.org/MathML:mstyle
- MozScript
Size Multiplier - Specifies the multiplier to be used to adjust font size due to changes in scriptlevel.
- Query
Font Metrics Flags - Flags for the query_font_metrics() function.
- Variant
Alternates ๐Parsing Flags - Flags of variant alternates in bit
- XLang
- Internal property that reflects the lang attribute
Enumsยง
- Absolute
Font Weight - An absolute font-weight value for a @font-face rule.
- Font
Family - Specifies a prioritized list of font family names or generic family names.
- Font
Size - A specified font-size value
- Font
Size Adjust Factor - A factor for one of the font-size-adjust metrics, which may be either a number
or the
from-font
keyword. - Font
Size Keyword - CSS font keywords
- Font
Stretch - A value for the
font-stretch
property. - Font
Stretch Keyword - A keyword value for
font-stretch
. - Font
Style - The specified value of the
font-style
property. - Font
Synthesis - A value for any of the font-synthesis-{weight,small-caps,position} properties.
- Font
Synthesis Style - A value for the font-synthesis-style property.
- Font
Weight - A specified font-weight value.
- Math
Depth - A value for the
math-depth
property. https://mathml-refresh.github.io/mathml-core/#the-math-script-level-property - Metrics
Override - A metrics override value for a @font-face descriptor
- System
Font - void enum for system font, can never exist
- Variant
Alternates - Set of variant alternates
- XText
Scale - How to do font-size scaling.
Constantsยง
- DEFAULT_
SCRIPT_ ๐MIN_ SIZE_ PT - DEFAULT_
SCRIPT_ ๐SIZE_ MULTIPLIER - FONT_
MEDIUM_ LINE_ HEIGHT_ PX - The default line height.
- FONT_
MEDIUM_ PX - The default font size.
- FONT_
STYLE_ OBLIQUE_ MAX_ ANGLE_ DEGREES - From https://drafts.csswg.org/css-fonts-4/#valdef-font-style-oblique-angle:
- FONT_
STYLE_ OBLIQUE_ MIN_ ANGLE_ DEGREES - The minimum angle value that
font-style: oblique
should compute to. - LARGER_
FONT_ ๐SIZE_ RATIO - This is the ratio applied for font-size: larger and smaller by both Firefox and Chrome
- MAX_
FONT_ WEIGHT - The maximum font-weight value per:
- MIN_
FONT_ WEIGHT - The minimum font-weight value per:
Functionsยง
Type Aliasesยง
- Font
Feature Settings - This property provides low-level control over OpenType or TrueType font features.
- Font
Size Adjust - Specified value for font-size-adjust, intended to help preserve the readability of text when font fallback occurs.
- Font
Variation Settings - This property provides low-level control over OpenType or TrueType font variations.
- Line
Height - A specified value for the
line-height
property. - Specified
Font Style - The specified value of the
font-style
property, without the system font crap.