pub(crate) struct UnscaledAxisMetrics {
pub dim: usize,
pub widths: SmallVec<i32, MAX_WIDTHS>,
pub width_metrics: WidthMetrics,
pub blues: SmallVec<UnscaledBlue, MAX_BLUES>,
}
Expand description
Unscaled metrics for a single axis.
This is the union of the Latin and CJK axis records.
See https://gitlab.freedesktop.org/freetype/freetype/-/blob/57617782464411201ce7bbc93b086c1b4d7d84a5/src/autofit/aflatin.h#L88 and https://gitlab.freedesktop.org/freetype/freetype/-/blob/57617782464411201ce7bbc93b086c1b4d7d84a5/src/autofit/afcjk.h#L73
Fields§
§dim: usize
§widths: SmallVec<i32, MAX_WIDTHS>
§width_metrics: WidthMetrics
§blues: SmallVec<UnscaledBlue, MAX_BLUES>
Implementations§
Trait Implementations§
Source§impl Clone for UnscaledAxisMetrics
impl Clone for UnscaledAxisMetrics
Source§fn clone(&self) -> UnscaledAxisMetrics
fn clone(&self) -> UnscaledAxisMetrics
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 UnscaledAxisMetrics
impl Debug for UnscaledAxisMetrics
Source§impl Default for UnscaledAxisMetrics
impl Default for UnscaledAxisMetrics
Source§fn default() -> UnscaledAxisMetrics
fn default() -> UnscaledAxisMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UnscaledAxisMetrics
impl RefUnwindSafe for UnscaledAxisMetrics
impl Send for UnscaledAxisMetrics
impl Sync for UnscaledAxisMetrics
impl Unpin for UnscaledAxisMetrics
impl UnwindSafe for UnscaledAxisMetrics
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