struct RawBlend {
num_axes: usize,
num_masters: usize,
axis_names: Vec<String>,
positions: bool,
maps: Vec<Vec<(i32, Fixed)>>,
weights: Vec<Fixed>,
build_char_len: usize,
}Expand description
The blend dictionaries of a font as they are read, before they are checked against each other.
Each add fails where FreeType refuses the whole font: a count out of
range, a count that disagrees with one already read, or a second design
map. A later axis type or position list replaces an earlier one, as in
FreeType.
Fields§
§num_axes: usize§num_masters: usize§axis_names: Vec<String>§positions: bool§maps: Vec<Vec<(i32, Fixed)>>§weights: Vec<Fixed>§build_char_len: usizeImplementations§
Source§impl RawBlend
impl RawBlend
fn set_num_axes(&mut self, num_axes: usize) -> Option<()>
fn set_num_masters(&mut self, num_masters: usize) -> Option<()>
fn add_axis_types(&mut self, names: Vec<String>) -> Option<()>
fn add_design_positions(&mut self, positions: Vec<Vec<Fixed>>) -> Option<()>
fn add_design_maps(&mut self, maps: Vec<Vec<(i32, Fixed)>>) -> Option<()>
fn add_weights(&mut self, weights: Vec<Fixed>) -> Option<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawBlend
impl RefUnwindSafe for RawBlend
impl Send for RawBlend
impl Sync for RawBlend
impl Unpin for RawBlend
impl UnsafeUnpin for RawBlend
impl UnwindSafe for RawBlend
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