Struct parcel_css::properties::font::Font
source · [−]pub struct Font {
pub family: Vec<FontFamily>,
pub size: FontSize,
pub style: FontStyle,
pub weight: FontWeight,
pub stretch: FontStretch,
pub line_height: LineHeight,
pub variant_caps: FontVariantCapsCSS2,
}
Expand description
https://www.w3.org/TR/2021/WD-css-fonts-4-20210729/#font-prop
Fields
family: Vec<FontFamily>
size: FontSize
style: FontStyle
weight: FontWeight
stretch: FontStretch
line_height: LineHeight
variant_caps: FontVariantCapsCSS2
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Font
impl UnwindSafe for Font
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more