pub enum SubstituteSource {
None,
Builtin,
Dir(PathBuf),
}Expand description
Where non-embedded glyph substitution (the Full GlyphPainting tier)
draws replacement faces from. The default, None, substitutes nothing –
Full behaves exactly like AllEmbedded until a caller opts in.
Variants§
None
No substitution: non-embedded fonts stay unpainted.
Builtin
Compiled-in faces: the OFL Croscore set (Arimo/Tinos/Cousine,
metric-compatible with Helvetica/Times/Courier) bundled via
include_bytes! behind the substitute-fonts Cargo feature – see
builtin_fonts_available and crate::substitute::BuiltinProvider.
Built without that feature, there are no compiled-in faces to hand
out: Builtin degrades to no provider at all, so Full behaves
exactly like AllEmbedded for non-embedded fonts, the same as
SubstituteSource::None.
Dir(PathBuf)
Faces read from a directory at render time (e.g. an installed
pdfboss-fonts package), one file per style – see
substitute::face_filename.
Trait Implementations§
Source§impl Clone for SubstituteSource
impl Clone for SubstituteSource
Source§fn clone(&self) -> SubstituteSource
fn clone(&self) -> SubstituteSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SubstituteSource
impl Debug for SubstituteSource
Source§impl Default for SubstituteSource
impl Default for SubstituteSource
Source§fn default() -> SubstituteSource
fn default() -> SubstituteSource
Auto Trait Implementations§
impl Freeze for SubstituteSource
impl RefUnwindSafe for SubstituteSource
impl Send for SubstituteSource
impl Sync for SubstituteSource
impl Unpin for SubstituteSource
impl UnsafeUnpin for SubstituteSource
impl UnwindSafe for SubstituteSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more