Struct allsorts_no_std::tables::glyf::CompositeGlyphFlag[][src]

pub struct CompositeGlyphFlag { /* fields omitted */ }

Implementations

impl CompositeGlyphFlag[src]

pub const ARG_1_AND_2_ARE_WORDS: CompositeGlyphFlag[src]

Bit 0: If this is set, the arguments are 16-bit (uint16 or int16); otherwise, they are bytes (uint8 or int8).

pub const ARGS_ARE_XY_VALUES: CompositeGlyphFlag[src]

Bit 1: If this is set, the arguments are signed xy values; otherwise, they are unsigned point numbers.

pub const ROUND_XY_TO_GRID: CompositeGlyphFlag[src]

Bit 2: For the xy values if the preceding is true.

pub const WE_HAVE_A_SCALE: CompositeGlyphFlag[src]

Bit 3: This indicates that there is a simple scale for the component. Otherwise, scale = 1.0.

pub const MORE_COMPONENTS: CompositeGlyphFlag[src]

Bit 4: Reserved, set to 0 Bit 5: Indicates at least one more glyph after this one.

pub const WE_HAVE_AN_X_AND_Y_SCALE: CompositeGlyphFlag[src]

Bit 6: The x direction will use a different scale from the y direction.

pub const WE_HAVE_A_TWO_BY_TWO: CompositeGlyphFlag[src]

Bit 7: There is a 2 by 2 transformation that will be used to scale the component.

pub const WE_HAVE_INSTRUCTIONS: CompositeGlyphFlag[src]

Bit 8: Following the last component are instructions for the composite character.

pub const USE_MY_METRICS: CompositeGlyphFlag[src]

Bit 9: If set, this forces the aw and lsb (and rsb) for the composite to be equal to those from this original glyph. This works for hinted and unhinted characters.

pub const OVERLAP_COMPOUND: CompositeGlyphFlag[src]

Bit 10: If set, the components of the compound glyph overlap.

Use of this flag is not required in OpenType — that is, it is valid to have components overlap without having this flag set. It may affect behaviors in some platforms, however. (See Apple’s specification for details regarding behavior in Apple platforms.) When used, it must be set on the flag word for the first component. See additional remarks, above, for the similar OVERLAP_SIMPLE flag used in simple-glyph descriptions.

pub const SCALED_COMPONENT_OFFSET: CompositeGlyphFlag[src]

Bit 11: The composite is designed to have the component offset scaled.

pub const UNSCALED_COMPONENT_OFFSET: CompositeGlyphFlag[src]

Bit 12: The composite is designed not to have the component offset scaled.

pub const fn empty() -> CompositeGlyphFlag[src]

Returns an empty set of flags

pub const fn all() -> CompositeGlyphFlag[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u16[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u16) -> Option<CompositeGlyphFlag>[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: u16) -> CompositeGlyphFlag[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const unsafe fn from_bits_unchecked(bits: u16) -> CompositeGlyphFlag[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: CompositeGlyphFlag) -> bool[src]

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: CompositeGlyphFlag) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: CompositeGlyphFlag)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: CompositeGlyphFlag)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: CompositeGlyphFlag)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: CompositeGlyphFlag, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

impl CompositeGlyphFlag[src]

Trait Implementations

impl Binary for CompositeGlyphFlag[src]

impl BitAnd<CompositeGlyphFlag> for CompositeGlyphFlag[src]

type Output = CompositeGlyphFlag

The resulting type after applying the & operator.

fn bitand(self, other: CompositeGlyphFlag) -> CompositeGlyphFlag[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<CompositeGlyphFlag> for CompositeGlyphFlag[src]

fn bitand_assign(&mut self, other: CompositeGlyphFlag)[src]

Disables all flags disabled in the set.

impl BitOr<CompositeGlyphFlag> for CompositeGlyphFlag[src]

type Output = CompositeGlyphFlag

The resulting type after applying the | operator.

fn bitor(self, other: CompositeGlyphFlag) -> CompositeGlyphFlag[src]

Returns the union of the two sets of flags.

impl BitOrAssign<CompositeGlyphFlag> for CompositeGlyphFlag[src]

fn bitor_assign(&mut self, other: CompositeGlyphFlag)[src]

Adds the set of flags.

impl BitXor<CompositeGlyphFlag> for CompositeGlyphFlag[src]

type Output = CompositeGlyphFlag

The resulting type after applying the ^ operator.

fn bitxor(self, other: CompositeGlyphFlag) -> CompositeGlyphFlag[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<CompositeGlyphFlag> for CompositeGlyphFlag[src]

fn bitxor_assign(&mut self, other: CompositeGlyphFlag)[src]

Toggles the set of flags.

impl Clone for CompositeGlyphFlag[src]

impl Copy for CompositeGlyphFlag[src]

impl Debug for CompositeGlyphFlag[src]

impl Eq for CompositeGlyphFlag[src]

impl Extend<CompositeGlyphFlag> for CompositeGlyphFlag[src]

impl FromIterator<CompositeGlyphFlag> for CompositeGlyphFlag[src]

impl Hash for CompositeGlyphFlag[src]

impl LowerHex for CompositeGlyphFlag[src]

impl Not for CompositeGlyphFlag[src]

type Output = CompositeGlyphFlag

The resulting type after applying the ! operator.

fn not(self) -> CompositeGlyphFlag[src]

Returns the complement of this set of flags.

impl Octal for CompositeGlyphFlag[src]

impl Ord for CompositeGlyphFlag[src]

impl PartialEq<CompositeGlyphFlag> for CompositeGlyphFlag[src]

impl PartialOrd<CompositeGlyphFlag> for CompositeGlyphFlag[src]

impl<'a> ReadFrom<'a> for CompositeGlyphFlag[src]

type ReadType = U16Be

impl StructuralEq for CompositeGlyphFlag[src]

impl StructuralPartialEq for CompositeGlyphFlag[src]

impl Sub<CompositeGlyphFlag> for CompositeGlyphFlag[src]

type Output = CompositeGlyphFlag

The resulting type after applying the - operator.

fn sub(self, other: CompositeGlyphFlag) -> CompositeGlyphFlag[src]

Returns the set difference of the two sets of flags.

impl SubAssign<CompositeGlyphFlag> for CompositeGlyphFlag[src]

fn sub_assign(&mut self, other: CompositeGlyphFlag)[src]

Disables all flags enabled in the set.

impl UpperHex for CompositeGlyphFlag[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> ReadBinary<'a> for T where
    T: ReadUnchecked<'a>, 
[src]

type HostType = <T as ReadUnchecked<'a>>::HostType

impl<'a, T> ReadBinaryDep<'a> for T where
    T: ReadBinary<'a>, 
[src]

type Args = ()

type HostType = <T as ReadBinary<'a>>::HostType

impl<'a, T> ReadFixedSizeDep<'a> for T where
    T: ReadUnchecked<'a>, 
[src]

impl<'a, T> ReadUnchecked<'a> for T where
    T: ReadFrom<'a>, 
[src]

type HostType = T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.