pub struct FontsManifest {
pub families: Vec<Family>,
pub fallback_chain: Vec<TypefaceId>,
pub settings: Settings,
}
Expand description
Version 2 of the Font Manifest schema.
Less duplication than v1 schema. Intended for generation using a Rust tool, not for writing by hand.
Fields§
§families: Vec<Family>
List of families in the manifest.
fallback_chain: Vec<TypefaceId>
Sequence in which to consider typefaces when selecting a fallback, whether within a requested generic family or as a last resort.
settings: Settings
Settings for the font provider service.
Implementations§
Source§impl FontsManifest
impl FontsManifest
Trait Implementations§
Source§impl Clone for FontsManifest
impl Clone for FontsManifest
Source§fn clone(&self) -> FontsManifest
fn clone(&self) -> FontsManifest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FontsManifest
impl Debug for FontsManifest
Source§impl Default for FontsManifest
impl Default for FontsManifest
Source§fn default() -> FontsManifest
fn default() -> FontsManifest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FontsManifest
impl<'de> Deserialize<'de> for FontsManifest
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
Source§impl Hash for FontsManifest
impl Hash for FontsManifest
Source§impl PartialEq for FontsManifest
impl PartialEq for FontsManifest
Source§impl Serialize for FontsManifest
impl Serialize for FontsManifest
Source§impl TryFrom<FontsManifest> for FontsManifest
impl TryFrom<FontsManifest> for FontsManifest
Source§fn try_from(old: FontsManifestV1) -> Result<FontsManifest, Error>
fn try_from(old: FontsManifestV1) -> Result<FontsManifest, Error>
Converts a v1 [manifest::FontsManifest
] to a v2 [manifest::v2::Manifest
].
This is purely an in-memory conversion, and does not load character sets for local files.
impl Eq for FontsManifest
impl StructuralPartialEq for FontsManifest
Auto Trait Implementations§
impl Freeze for FontsManifest
impl RefUnwindSafe for FontsManifest
impl Send for FontsManifest
impl Sync for FontsManifest
impl Unpin for FontsManifest
impl UnwindSafe for FontsManifest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)