pub enum FontSource {
Bundled,
Project,
Local,
}Expand description
Where a resolved font face came from, in resolution-priority order.
This is the provenance of a registered face. It drives the font.local
advisory: a face resolved from FontSource::Local is sourced from the
machine running the render, so the output is NOT guaranteed deterministic
across machines. Bundled and Project faces travel with the engine /
document and are portable.
Variants§
Bundled
Embedded in the engine binary (the bundled Noto faces). Fully portable.
Project
Declared as a font-kind project asset and shipped with the document.
Local
Discovered on the local/system font directories of the render machine.
Non-deterministic across machines — emits a font.local advisory.
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 moreimpl Copy for FontSource
Source§impl Debug for FontSource
impl Debug for FontSource
impl Eq for FontSource
Source§impl PartialEq for FontSource
impl PartialEq for FontSource
Source§fn eq(&self, other: &FontSource) -> bool
fn eq(&self, other: &FontSource) -> bool
Tests for
self and other values to be equal, and is used by ==.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