Struct read_fonts::tables::layout::LookupFlag

source ·
pub struct LookupFlag(/* private fields */);
Expand description

The LookupFlag bit enumeration.

Implementations§

source§

impl LookupFlag

source

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.

source

pub const IGNORE_BASE_GLYPHS: Self = _

If set, skips over base glyphs

source

pub const IGNORE_LIGATURES: Self = _

If set, skips over ligatures

source

pub const IGNORE_MARKS: Self = _

If set, skips over all combining marks

source

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.

source

pub fn empty() -> Self

Return new, empty flags

source

pub fn from_bits_truncate(bits: u16) -> Self

Construct a LookupFlag from a raw value, discarding invalid bits

source

pub fn to_bits(self) -> u16

Raw transmutation to u16.

source

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.

source

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.

source

pub fn ignore_base_glyphs(self) -> bool

If set, skips over base glyphs

source

pub fn set_ignore_base_glyphs(&mut self, val: bool)

If set, skips over base glyphs

source

pub fn ignore_ligatures(self) -> bool

If set, skips over ligatures

source

pub fn set_ignore_ligatures(&mut self, val: bool)

If set, skips over ligatures

source

pub fn ignore_marks(self) -> bool

If set, skips over all combining marks

source

pub fn set_ignore_marks(&mut self, val: bool)

If set, skips over all combining marks

source

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.

source

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.

source

pub fn mark_attachment_type_mask(self) -> Option<u16>

If not zero, skips over all marks of attachment type different from specified.

source

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

§

type Output = LookupFlag

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
source§

impl BitOrAssign for LookupFlag

source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
source§

impl Clone for LookupFlag

source§

fn clone(&self) -> LookupFlag

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LookupFlag

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for LookupFlag

source§

fn default() -> LookupFlag

Returns the “default value” for a type. Read more
source§

impl Hash for LookupFlag

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for LookupFlag

source§

fn cmp(&self, other: &LookupFlag) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for LookupFlag

source§

fn eq(&self, other: &LookupFlag) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for LookupFlag

source§

fn partial_cmp(&self, other: &LookupFlag) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Scalar for LookupFlag

§

type Raw = <u16 as Scalar>::Raw

The raw byte representation of this type.
source§

fn to_raw(self) -> Self::Raw

Encode this type as raw big-endian bytes
source§

fn from_raw(raw: Self::Raw) -> Self

Create an instance of this type from raw big-endian bytes
source§

fn read(slice: &[u8]) -> Option<Self>

Attempt to read a scalar from a slice. Read more
source§

impl Copy for LookupFlag

source§

impl Eq for LookupFlag

source§

impl StructuralPartialEq for LookupFlag

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> FixedSize for T
where T: Scalar,

source§

const RAW_BYTE_LEN: usize = _

The raw size of this type, in bytes. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.