pub struct Font {
pub asset: PathBuf,
pub index: u32,
pub slant: Slant,
pub weight: u16,
pub width: Width,
pub languages: LanguageSet,
pub package: Option<AbsolutePackageUrl>,
pub code_points: CharSet,
}
Expand description
A reference to a font asset (file path) and metadata about one of the typefaces contained in the file.
Fields§
§asset: PathBuf
Path to the font file.
index: u32
Index of the typeface within the file.
slant: Slant
The typeface’s slant.
weight: u16
The typeface’s weight.
width: Width
The typeface’s width.
languages: LanguageSet
List of BCP-47 language IDs explicitly supported by the typeface.
package: Option<AbsolutePackageUrl>
Fuchsia Package URL at which this font file can also be found.
code_points: CharSet
Character set supported by the typeface.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Font
impl<'de> Deserialize<'de> for Font
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Font
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more