pub struct KerningGroups {
pub groups: BTreeMap<KernGroup, BTreeSet<GlyphName>>,
pub locations: BTreeSet<NormalizedLocation>,
pub old_to_new_group_names: BTreeMap<KernGroup, KernGroup>,
}Expand description
IR representation of kerning groups.
In UFO terms, roughly groups.plist plus the set of locations that can have kerning.
Fields§
§groups: BTreeMap<KernGroup, BTreeSet<GlyphName>>§locations: BTreeSet<NormalizedLocation>The locations that have kerning defined.
Must be a subset of the master locations.
old_to_new_group_names: BTreeMap<KernGroup, KernGroup>Optional group renaming map, meant for KerningInstance to consume
The rhs should be the name used in the groups map.
Trait Implementations§
Source§impl Clone for KerningGroups
impl Clone for KerningGroups
Source§fn clone(&self) -> KerningGroups
fn clone(&self) -> KerningGroups
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KerningGroups
impl Debug for KerningGroups
Source§impl Default for KerningGroups
impl Default for KerningGroups
Source§fn default() -> KerningGroups
fn default() -> KerningGroups
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KerningGroups
impl<'de> Deserialize<'de> for KerningGroups
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KerningGroups
Source§impl PartialEq for KerningGroups
impl PartialEq for KerningGroups
Source§fn eq(&self, other: &KerningGroups) -> bool
fn eq(&self, other: &KerningGroups) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Persistable for KerningGroups
impl Persistable for KerningGroups
Source§impl Serialize for KerningGroups
impl Serialize for KerningGroups
impl StructuralPartialEq for KerningGroups
Auto Trait Implementations§
impl Freeze for KerningGroups
impl RefUnwindSafe for KerningGroups
impl Send for KerningGroups
impl Sync for KerningGroups
impl Unpin for KerningGroups
impl UnsafeUnpin for KerningGroups
impl UnwindSafe for KerningGroups
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.