pub enum EmbeddingPermissions {
Installable,
RestrictedLicense,
PreviewAndPrint,
Editable,
}Expand description
Embedding permissions recorded in the OS/2 font table.
See the Microsoft docs for details on what these permissions mean.
Variants§
Installable
Installable embedding.
RestrictedLicense
Restricted license embedding.
PreviewAndPrint
Preview & print embedding.
Editable
Editable embedding.
Implementations§
Source§impl EmbeddingPermissions
impl EmbeddingPermissions
Sourcepub fn is_lenient(self) -> bool
pub fn is_lenient(self) -> bool
Are these permissions lenient? Self::Installable and Self::Editable permissions are considered
lenient, while the others are restrictive. YMMV depending on the use case,
so be sure to consult the font license if in doubt.
Trait Implementations§
Source§impl Clone for EmbeddingPermissions
impl Clone for EmbeddingPermissions
Source§fn clone(&self) -> EmbeddingPermissions
fn clone(&self) -> EmbeddingPermissions
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 EmbeddingPermissions
impl Debug for EmbeddingPermissions
impl Copy for EmbeddingPermissions
Auto Trait Implementations§
impl Freeze for EmbeddingPermissions
impl RefUnwindSafe for EmbeddingPermissions
impl Send for EmbeddingPermissions
impl Sync for EmbeddingPermissions
impl Unpin for EmbeddingPermissions
impl UnwindSafe for EmbeddingPermissions
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