pub(crate) struct UnscaledStyleMetrics {
pub class_ix: u16,
pub digits_have_same_width: bool,
pub axes: [UnscaledAxisMetrics; 2],
}
Expand description
Unscaled metrics for a single style and script.
This is the union of the root, Latin and CJK style metrics but the latter two are actually identical.
See https://gitlab.freedesktop.org/freetype/freetype/-/blob/57617782464411201ce7bbc93b086c1b4d7d84a5/src/autofit/aftypes.h#L413 and https://gitlab.freedesktop.org/freetype/freetype/-/blob/57617782464411201ce7bbc93b086c1b4d7d84a5/src/autofit/aflatin.h#L109 and https://gitlab.freedesktop.org/freetype/freetype/-/blob/57617782464411201ce7bbc93b086c1b4d7d84a5/src/autofit/afcjk.h#L95
Fields§
§class_ix: u16
Index of style class.
digits_have_same_width: bool
Monospaced digits?
axes: [UnscaledAxisMetrics; 2]
Per-dimension unscaled metrics.
Implementations§
Source§impl UnscaledStyleMetrics
impl UnscaledStyleMetrics
pub fn style_class(&self) -> &'static StyleClass
Trait Implementations§
Source§impl Clone for UnscaledStyleMetrics
impl Clone for UnscaledStyleMetrics
Source§fn clone(&self) -> UnscaledStyleMetrics
fn clone(&self) -> UnscaledStyleMetrics
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 UnscaledStyleMetrics
impl Debug for UnscaledStyleMetrics
Source§impl Default for UnscaledStyleMetrics
impl Default for UnscaledStyleMetrics
Source§fn default() -> UnscaledStyleMetrics
fn default() -> UnscaledStyleMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UnscaledStyleMetrics
impl RefUnwindSafe for UnscaledStyleMetrics
impl Send for UnscaledStyleMetrics
impl Sync for UnscaledStyleMetrics
impl Unpin for UnscaledStyleMetrics
impl UnwindSafe for UnscaledStyleMetrics
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