Struct write_fonts::tables::layout::Feature
source · pub struct Feature {
pub feature_params: NullableOffsetMarker<FeatureParams>,
pub lookup_list_indices: Vec<u16>,
}Expand description
Fields§
§feature_params: NullableOffsetMarker<FeatureParams>Offset from start of Feature table to FeatureParams table, if defined for the feature and present, else NULL
lookup_list_indices: Vec<u16>Array of indices into the LookupList — zero-based (first lookup is LookupListIndex = 0)
Implementations§
Trait Implementations§
source§impl FontWrite for Feature
impl FontWrite for Feature
source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Write our data and information about offsets into this TableWriter.
Auto Trait Implementations§
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnwindSafe for Feature
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<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.