pub struct FontVariantLigatures {
pub common: Option<bool>,
pub discretionary: Option<bool>,
pub historical: Option<bool>,
pub contextual: Option<bool>,
}Expand description
Which ligatures a run is set with, from
font-variant-ligatures. A group left at None keeps whatever
the shaper does with it, which is liga, clig and calt on
and the rest off.
Fields§
§common: Option<bool>common-ligatures or no-common-ligatures: liga and
clig.
discretionary: Option<bool>discretionary-ligatures or no-discretionary-ligatures:
dlig.
historical: Option<bool>historical-ligatures or no-historical-ligatures: hlig.
contextual: Option<bool>contextual or no-contextual: calt.
Implementations§
Source§impl FontVariantLigatures
impl FontVariantLigatures
Sourcepub const NORMAL: FontVariantLigatures
pub const NORMAL: FontVariantLigatures
normal: every group left to the shaper.
Sourcepub const NONE: FontVariantLigatures
pub const NONE: FontVariantLigatures
none: every ligature off.
Sourcepub fn settings(&self) -> Vec<FeatureSetting>
pub fn settings(&self) -> Vec<FeatureSetting>
The features this value asks the face for.
Trait Implementations§
Source§impl Clone for FontVariantLigatures
impl Clone for FontVariantLigatures
Source§fn clone(&self) -> FontVariantLigatures
fn clone(&self) -> FontVariantLigatures
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 FontVariantLigatures
Source§impl Debug for FontVariantLigatures
impl Debug for FontVariantLigatures
Source§impl Default for FontVariantLigatures
impl Default for FontVariantLigatures
Source§fn default() -> FontVariantLigatures
fn default() -> FontVariantLigatures
Returns the “default value” for a type. Read more
impl Eq for FontVariantLigatures
Source§impl Hash for FontVariantLigatures
impl Hash for FontVariantLigatures
Source§impl PartialEq for FontVariantLigatures
impl PartialEq for FontVariantLigatures
Source§impl Serialize for FontVariantLigatures
impl Serialize for FontVariantLigatures
impl StructuralPartialEq for FontVariantLigatures
Auto Trait Implementations§
impl Freeze for FontVariantLigatures
impl RefUnwindSafe for FontVariantLigatures
impl Send for FontVariantLigatures
impl Sync for FontVariantLigatures
impl Unpin for FontVariantLigatures
impl UnsafeUnpin for FontVariantLigatures
impl UnwindSafe for FontVariantLigatures
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.