Struct read_fonts::tables::layout::LookupFlag
source · pub struct LookupFlag(/* private fields */);
Expand description
The LookupFlag bit enumeration.
Implementations§
source§impl LookupFlag
impl LookupFlag
sourcepub const RIGHT_TO_LEFT: Self = _
pub const RIGHT_TO_LEFT: Self = _
This bit relates only to the correct processing of GPOS type 3 (cursive attachment) lookups
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 const IGNORE_BASE_GLYPHS: Self = _
pub const IGNORE_BASE_GLYPHS: Self = _
If set, skips over base glyphs
sourcepub const IGNORE_LIGATURES: Self = _
pub const IGNORE_LIGATURES: Self = _
If set, skips over ligatures
sourcepub const IGNORE_MARKS: Self = _
pub const IGNORE_MARKS: Self = _
If set, skips over all combining marks
sourcepub const USE_MARK_FILTERING_SET: Self = _
pub const USE_MARK_FILTERING_SET: Self = _
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 from_bits_truncate(bits: u16) -> Self
pub fn from_bits_truncate(bits: u16) -> Self
Construct a LookupFlag from a raw value, discarding invalid bits
sourcepub const fn contains(&self, other: Self) -> bool
pub const fn contains(&self, other: Self) -> bool
Returns true
if all of the flags in other
are contained within self
.
sourcepub fn mark_attachment_class(self) -> Option<u16>
pub fn mark_attachment_class(self) -> Option<u16>
If not zero, skips over all marks of attachment type different from specified.
sourcepub fn set_mark_attachment_class(&mut self, val: u16)
pub fn set_mark_attachment_class(&mut self, val: u16)
If not zero, skips over all marks of attachment type different from specified.
Trait Implementations§
source§impl BitOr for LookupFlag
impl BitOr for LookupFlag
source§impl BitOrAssign for LookupFlag
impl BitOrAssign for LookupFlag
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moresource§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 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§impl PartialOrd for LookupFlag
impl PartialOrd for LookupFlag
source§impl Scalar for LookupFlag
impl Scalar for LookupFlag
impl Copy for LookupFlag
impl Eq for LookupFlag
impl StructuralPartialEq for LookupFlag
Auto Trait Implementations§
impl Freeze for LookupFlag
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)