pub enum FontSource {
Single(PathBuf),
Collection(PathBuf, u32),
}Expand description
One font source, as resolved from fonts.satysfi-hash (src already
joined against the font root) or synthesized from a --font/
--font-bold/--font-oblique CLI flag.
Mirrors v0.0.6’s FontAccess (loadFont.ml:43-47); see the module docs
for why Collection’s index is currently limited to 0.
Variants§
Single(PathBuf)
A plain font file (TrueType, OpenType, …).
Collection(PathBuf, u32)
One face of a TrueType Collection (.ttc), by index.
Trait Implementations§
Source§impl Clone for FontSource
impl Clone for FontSource
Source§fn clone(&self) -> FontSource
fn clone(&self) -> FontSource
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 FontSource
impl Debug for FontSource
impl Eq for FontSource
Source§impl PartialEq for FontSource
impl PartialEq for FontSource
impl StructuralPartialEq for FontSource
Auto Trait Implementations§
impl Freeze for FontSource
impl RefUnwindSafe for FontSource
impl Send for FontSource
impl Sync for FontSource
impl Unpin for FontSource
impl UnsafeUnpin for FontSource
impl UnwindSafe for FontSource
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