Struct write_fonts::tables::layout::LookupFlag
source · pub struct LookupFlag(/* private fields */);Expand description
The LookupFlag bit enumeration.
Implementations§
source§impl LookupFlag
impl LookupFlag
sourcepub fn empty() -> LookupFlag
pub fn empty() -> LookupFlag
Return new, empty flags
sourcepub fn from_bits_truncate(bits: u16) -> LookupFlag
pub fn from_bits_truncate(bits: u16) -> LookupFlag
Construct a LookupFlag from a raw value, discarding invalid bits
sourcepub fn right_to_left(self) -> bool
pub fn right_to_left(self) -> bool
This bit relates only to the correct processing of the cursive attachment lookup type (GPOS lookup type 3).
When this bit is set, the last glyph in a given sequence to which the cursive attachment lookup is applied, will be positioned on the baseline.
sourcepub fn set_right_to_left(&mut self, val: bool)
pub fn set_right_to_left(&mut self, val: bool)
This bit relates only to the correct processing of the cursive attachment lookup type (GPOS lookup type 3).
When this bit is set, the last glyph in a given sequence to which the cursive attachment lookup is applied, will be positioned on the baseline.
sourcepub fn ignore_base_glyphs(self) -> bool
pub fn ignore_base_glyphs(self) -> bool
If set, skips over base glyphs
sourcepub fn set_ignore_base_glyphs(&mut self, val: bool)
pub fn set_ignore_base_glyphs(&mut self, val: bool)
If set, skips over base glyphs
sourcepub fn ignore_ligatures(self) -> bool
pub fn ignore_ligatures(self) -> bool
If set, skips over ligatures
sourcepub fn set_ignore_ligatures(&mut self, val: bool)
pub fn set_ignore_ligatures(&mut self, val: bool)
If set, skips over ligatures
sourcepub fn ignore_marks(self) -> bool
pub fn ignore_marks(self) -> bool
If set, skips over all combining marks
sourcepub fn set_ignore_marks(&mut self, val: bool)
pub fn set_ignore_marks(&mut self, val: bool)
If set, skips over all combining marks
sourcepub fn use_mark_filtering_set(self) -> bool
pub fn use_mark_filtering_set(self) -> bool
If set, indicates that the lookup table structure is followed by a MarkFilteringSet field.
The layout engine skips over all mark glyphs not in the mark filtering set indicated.
sourcepub fn set_use_mark_filtering_set(&mut self, val: bool)
pub fn set_use_mark_filtering_set(&mut self, val: bool)
If set, indicates that the lookup table structure is followed by a MarkFilteringSet field.
The layout engine skips over all mark glyphs not in the mark filtering set indicated.
sourcepub fn mark_attachment_type_mask(self) -> Option<u16>
pub fn mark_attachment_type_mask(self) -> Option<u16>
If not zero, skips over all marks of attachment type different from specified.
sourcepub fn set_mark_attachment_type(&mut self, val: u16)
pub fn set_mark_attachment_type(&mut self, val: u16)
If not zero, skips over all marks of attachment type different from specified.
Trait Implementations§
source§impl Clone for LookupFlag
impl Clone for LookupFlag
source§fn clone(&self) -> LookupFlag
fn clone(&self) -> LookupFlag
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for LookupFlag
impl Debug for LookupFlag
source§impl Default for LookupFlag
impl Default for LookupFlag
source§fn default() -> LookupFlag
fn default() -> LookupFlag
source§impl FontWrite for LookupFlag
impl FontWrite for LookupFlag
source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
source§fn table_type(&self) -> TableType
fn table_type(&self) -> TableType
source§impl Hash for LookupFlag
impl Hash for LookupFlag
source§impl Ord for LookupFlag
impl Ord for LookupFlag
source§fn cmp(&self, other: &LookupFlag) -> Ordering
fn cmp(&self, other: &LookupFlag) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for LookupFlag
impl PartialEq for LookupFlag
source§fn eq(&self, other: &LookupFlag) -> bool
fn eq(&self, other: &LookupFlag) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialOrd for LookupFlag
impl PartialOrd for LookupFlag
source§fn partial_cmp(&self, other: &LookupFlag) -> Option<Ordering>
fn partial_cmp(&self, other: &LookupFlag) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl Scalar for LookupFlag
impl Scalar for LookupFlag
source§fn from_raw(raw: <LookupFlag as Scalar>::Raw) -> LookupFlag
fn from_raw(raw: <LookupFlag as Scalar>::Raw) -> LookupFlag
impl Copy for LookupFlag
impl Eq for LookupFlag
impl StructuralPartialEq for LookupFlag
Auto Trait Implementations§
impl RefUnwindSafe for LookupFlag
impl Send for LookupFlag
impl Sync for LookupFlag
impl Unpin for LookupFlag
impl UnwindSafe for LookupFlag
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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
§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
key and return true if they are equal.source§impl<T> FixedSize for Twhere
T: Scalar,
impl<T> FixedSize for Twhere
T: Scalar,
source§const RAW_BYTE_LEN: usize = _
const RAW_BYTE_LEN: usize = _
source§impl<T> FromObjRef<BigEndian<T>> for T
impl<T> FromObjRef<BigEndian<T>> for T
source§fn from_obj_ref(from: &BigEndian<T>, _: FontData<'_>) -> T
fn from_obj_ref(from: &BigEndian<T>, _: FontData<'_>) -> T
from to an instance of Self, using the provided data to resolve offsets.source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.