pub struct ComponentFlags {
pub round_xy_to_grid: bool,
pub use_my_metrics: bool,
pub scaled_component_offset: bool,
pub unscaled_component_offset: bool,
pub overlap_compound: bool,
}Expand description
Options that can be manually set for a given component.
This provides an easier interface for setting those flags that are not calculated based on other properties of the glyph. For more information on these flags, see Component Glyph Flags in the spec.
These eventually are combined with calculated flags into the
CompositeGlyphFlags bitset.
Fields§
§round_xy_to_grid: boolRound xy values to the nearest grid line
use_my_metrics: boolUse the advance/lsb/rsb values of this component for the whole composite glyph
scaled_component_offset: boolThe composite should have this component’s offset scaled
unscaled_component_offset: boolThe composite should not have this component’s offset scaled
overlap_compound: boolIf set, the components of the composite glyph overlap.
Trait Implementations§
Source§impl Clone for ComponentFlags
impl Clone for ComponentFlags
Source§fn clone(&self) -> ComponentFlags
fn clone(&self) -> ComponentFlags
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComponentFlags
impl Debug for ComponentFlags
Source§impl Default for ComponentFlags
impl Default for ComponentFlags
Source§fn default() -> ComponentFlags
fn default() -> ComponentFlags
Returns the “default value” for a type. Read more
Source§impl From<ComponentFlags> for CompositeGlyphFlags
impl From<ComponentFlags> for CompositeGlyphFlags
Source§fn from(value: ComponentFlags) -> Self
fn from(value: ComponentFlags) -> Self
Converts to this type from the input type.
Source§impl From<CompositeGlyphFlags> for ComponentFlags
impl From<CompositeGlyphFlags> for ComponentFlags
Source§fn from(src: CompositeGlyphFlags) -> ComponentFlags
fn from(src: CompositeGlyphFlags) -> ComponentFlags
Converts to this type from the input type.
Source§impl Hash for ComponentFlags
impl Hash for ComponentFlags
Source§impl PartialEq for ComponentFlags
impl PartialEq for ComponentFlags
impl Copy for ComponentFlags
impl Eq for ComponentFlags
impl StructuralPartialEq for ComponentFlags
Auto Trait Implementations§
impl Freeze for ComponentFlags
impl RefUnwindSafe for ComponentFlags
impl Send for ComponentFlags
impl Sync for ComponentFlags
impl Unpin for ComponentFlags
impl UnwindSafe for ComponentFlags
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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
Convert this type into
T, using the provided data to resolve any offsets.