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 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 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§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 more