pub struct FontCatalogEntry {
pub family: String,
pub has_variable_axes: bool,
pub known_variable_axes: Vec<String>,
pub variable_axes: Vec<FontVariableAxisInfo>,
pub is_monospace_candidate: bool,
}Expand description
Best-effort metadata for a font family entry.
This is populated by the runner from the renderer’s text backend and is platform-dependent by design. Fields are intentionally coarse and should be treated as hints for settings pickers and diagnostics, not as hard contracts.
Fields§
§family: String§has_variable_axes: boolWhether the family appears to contain at least one variable font (any axis present).
known_variable_axes: Vec<String>Known variable axis tags (best-effort), e.g. wght, wdth, slnt, ital, opsz.
variable_axes: Vec<FontVariableAxisInfo>Best-effort variable axis metadata for the family’s default face.
Axis tags beyond the known set may be present (e.g. GRAD for Roboto Flex).
is_monospace_candidate: boolBest-effort monospace hint derived from font tables (typically PostScript isFixedPitch).
Trait Implementations§
Source§impl Clone for FontCatalogEntry
impl Clone for FontCatalogEntry
Source§fn clone(&self) -> FontCatalogEntry
fn clone(&self) -> FontCatalogEntry
Returns a duplicate 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 FontCatalogEntry
impl Debug for FontCatalogEntry
Source§impl Default for FontCatalogEntry
impl Default for FontCatalogEntry
Source§fn default() -> FontCatalogEntry
fn default() -> FontCatalogEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FontCatalogEntrywhere
FontCatalogEntry: Default,
impl<'de> Deserialize<'de> for FontCatalogEntrywhere
FontCatalogEntry: Default,
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 PartialEq for FontCatalogEntry
impl PartialEq for FontCatalogEntry
Source§impl Serialize for FontCatalogEntry
impl Serialize for FontCatalogEntry
impl Eq for FontCatalogEntry
impl StructuralPartialEq for FontCatalogEntry
Auto Trait Implementations§
impl Freeze for FontCatalogEntry
impl RefUnwindSafe for FontCatalogEntry
impl Send for FontCatalogEntry
impl Sync for FontCatalogEntry
impl Unpin for FontCatalogEntry
impl UnsafeUnpin for FontCatalogEntry
impl UnwindSafe for FontCatalogEntry
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