pub enum SubsetProfile {
Minimal,
Web,
Full,
Custom(Vec<u32>),
}Expand description
Profiles for controlling the tables included in subset fonts.
Variants§
Minimal
Minimal profile, suitable for PDF embedding (smallest file size).
Web
OpenType profile, includes minimum tables for a valid standalone OpenType font.
Full
Full profile, includes all relevant tables for a fully functional subset font.
Custom(Vec<u32>)
Custom profile, allows specifying a list of tables to include.
Implementations§
Source§impl SubsetProfile
impl SubsetProfile
Sourcepub fn parse_custom(s: &str) -> Self
pub fn parse_custom(s: &str) -> Self
Parses a custom subset profile from a string such as “gsub,vmtx,prep”, includes the minimal tables automatically
Trait Implementations§
Source§impl Clone for SubsetProfile
impl Clone for SubsetProfile
Source§fn clone(&self) -> SubsetProfile
fn clone(&self) -> SubsetProfile
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 SubsetProfile
impl Debug for SubsetProfile
Source§impl Default for SubsetProfile
impl Default for SubsetProfile
Source§impl PartialEq for SubsetProfile
impl PartialEq for SubsetProfile
impl Eq for SubsetProfile
impl StructuralPartialEq for SubsetProfile
Auto Trait Implementations§
impl Freeze for SubsetProfile
impl RefUnwindSafe for SubsetProfile
impl Send for SubsetProfile
impl Sync for SubsetProfile
impl Unpin for SubsetProfile
impl UnwindSafe for SubsetProfile
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
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>
Converts
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>
Converts
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