pub struct FontBundleEntry {
pub aliases: Vec<String>,
pub face_index: u32,
pub family: Option<String>,
pub id: StableTextId,
pub postscript_name: Option<String>,
pub sha256: Sha256Hex,
pub slot: u32,
pub style: Option<String>,
pub variations: Vec<FontVariationCoordinate>,
}Expand description
One font face whose bytes are supplied in a separate binary slot.
JSON schema
{
"description": "One font face whose bytes are supplied in a separate binary slot.",
"type": "object",
"required": [
"aliases",
"face_index",
"id",
"sha256",
"slot",
"variations"
],
"properties": {
"aliases": {
"type": "array",
"items": {
"type": "string"
}
},
"face_index": {
"type": "integer",
"maximum": 4294967295.0,
"minimum": 0.0
},
"family": {
"type": "string"
},
"id": {
"$ref": "#/$defs/StableTextId"
},
"postscript_name": {
"type": "string"
},
"sha256": {
"$ref": "#/$defs/Sha256Hex"
},
"slot": {
"type": "integer",
"maximum": 4294967295.0,
"minimum": 0.0
},
"style": {
"type": "string"
},
"variations": {
"type": "array",
"items": {
"$ref": "#/$defs/FontVariationCoordinate"
}
}
},
"additionalProperties": false
}Fields§
§aliases: Vec<String>§face_index: u32§family: Option<String>§id: StableTextId§postscript_name: Option<String>§sha256: Sha256Hex§slot: u32§style: Option<String>§variations: Vec<FontVariationCoordinate>Trait Implementations§
Source§impl Clone for FontBundleEntry
impl Clone for FontBundleEntry
Source§fn clone(&self) -> FontBundleEntry
fn clone(&self) -> FontBundleEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FontBundleEntry
impl Debug for FontBundleEntry
Source§impl<'de> Deserialize<'de> for FontBundleEntry
impl<'de> Deserialize<'de> for FontBundleEntry
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 FontBundleEntry
impl RefUnwindSafe for FontBundleEntry
impl Send for FontBundleEntry
impl Sync for FontBundleEntry
impl Unpin for FontBundleEntry
impl UnsafeUnpin for FontBundleEntry
impl UnwindSafe for FontBundleEntry
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