Skip to main content

Crate topcoat_font

Crate topcoat_font 

Source

Modules§

fontsourcefontsource

Structs§

CodePointOutOfRangeError
Error returned when converting a u32 greater than U+10FFFF into a UnicodeCodePoint.
EmptyFontFacesError
Error returned when converting an empty collection into FontFaces.
EmptyFontSourcesError
Error returned when converting an empty collection into FontSources.
Font
A lightweight, Copy handle to a font.
FontData
The owned data backing a Font: its family name, its faces, and the content hash derived from them.
FontFace
A single CSS @font-face rule: a font family backed by one set of sources, scoped to an optional weight range, style, display strategy, and unicode range.
FontFaces
An ordered, non-empty list of FontFaces.
FontResolver
Function registered with the app context that resolves a Font to its hosted stylesheet URL.
FontRouterouter
FontSources
An ordered, non-empty list of FontSources, the value of a CSS @font-face src descriptor.
FontWeight
A font weight: an integer in 100..=900.
FontWeightOutOfRangeError
Error returned when converting a u16 outside 100..=900 into a FontWeight.
FontWeightRange
An inclusive range of FontWeights, as carried by a variable font.
LinkPropsview
Loads a Font into the page.
LinkPropsBuilderview
Typestate builder for LinkProps, created by LinkProps::builder(). build() becomes available once every required property has been set.
ObliqueAngle
An oblique slant angle in degrees, in -90.0..=90.0.
ObliqueAngleOutOfRangeError
Error returned when converting an angle outside -90.0..=90.0 degrees into an ObliqueAngle.
ObliqueAngleRange
An inclusive range of ObliqueAngles, as carried by a variable font.
PreloadLinkPropsview
Renders a rel="preload" <link> for a single font FontSource.
PreloadLinkPropsBuilderview
Typestate builder for PreloadLinkProps, created by PreloadLinkProps::builder(). build() becomes available once every required property has been set.
UnicodeCodePoint
A Unicode code point: an integer in U+0000..=U+10FFFF.
UnicodeRange
An inclusive range of UnicodeCodePoints.
UnicodeRanges
A set of UnicodeRanges, the value of a CSS unicode-range descriptor.
linkview
Loads a Font into the page.
preload_linkview
Renders a rel="preload" <link> for a single font FontSource.

Enums§

FontDisplay
How a font face is displayed while it loads, as named by the CSS font-display descriptor of an @font-face rule.
FontFormat
A font file format, as named by the format() hint of a CSS @font-face src descriptor.
FontSource
A single entry of a CSS @font-face src descriptor.
FontSourceUrl
The location of a font file, the URL of a url() entry in a CSS @font-face src descriptor.
FontStyle
The style axis of a font face: upright, italic, or oblique.
FontTech
A font technology, as named by the tech() hint of a CSS @font-face src descriptor.

Traits§

RouterBuilderFontExtrouter

Type Aliases§

ResolveFontRouteFn
Function that formats the URL at which a Font’s CSS is hosted by the router into a dyn Write.