[−][src]Struct azul_text_layout::text_layout::FontMetrics
Fields
font_size: usize
Font size that these metrics were created for, usually 1000px (so every metric has to be divided by 1000 before it can be used for measurements)
x_ppem: u16
y_ppem: u16
x_scale: i64
y_scale: i64
ascender: i64
descender: i64
height: i64
max_advance: i64
Implementations
impl FontMetrics
[src]
pub fn zero() -> FontMetrics
[src]
pub fn get_x_ppem(&self, target_font_size: f32) -> f32
[src]
pub fn get_y_ppem(&self, target_font_size: f32) -> f32
[src]
pub fn get_x_scale(&self, target_font_size: f32) -> f32
[src]
pub fn get_y_scale(&self, target_font_size: f32) -> f32
[src]
pub fn get_ascender(&self, target_font_size: f32) -> f32
[src]
pub fn get_descender(&self, target_font_size: f32) -> f32
[src]
pub fn get_height(&self, target_font_size: f32) -> f32
[src]
pub fn get_max_advance(&self, target_font_size: f32) -> f32
[src]
Trait Implementations
impl Clone for FontMetrics
[src]
fn clone(&self) -> FontMetrics
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for FontMetrics
[src]
impl Debug for FontMetrics
[src]
impl Eq for FontMetrics
[src]
impl Hash for FontMetrics
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for FontMetrics
[src]
fn cmp(&self, other: &FontMetrics) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<FontMetrics> for FontMetrics
[src]
fn eq(&self, other: &FontMetrics) -> bool
[src]
fn ne(&self, other: &FontMetrics) -> bool
[src]
impl PartialOrd<FontMetrics> for FontMetrics
[src]
fn partial_cmp(&self, other: &FontMetrics) -> Option<Ordering>
[src]
fn lt(&self, other: &FontMetrics) -> bool
[src]
fn le(&self, other: &FontMetrics) -> bool
[src]
fn gt(&self, other: &FontMetrics) -> bool
[src]
fn ge(&self, other: &FontMetrics) -> bool
[src]
impl StructuralEq for FontMetrics
[src]
impl StructuralPartialEq for FontMetrics
[src]
Auto Trait Implementations
impl RefUnwindSafe for FontMetrics
impl Send for FontMetrics
impl Sync for FontMetrics
impl Unpin for FontMetrics
impl UnwindSafe for FontMetrics
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,