Struct style::font_metrics::FontMetrics
[−]
[src]
pub struct FontMetrics {
pub x_height: Au,
pub zero_advance_measure: Au,
}Represents the font metrics that style needs from a font to compute the
value of certain CSS units like ex.
Fields
x_height: Au
The x-height of the font.
zero_advance_measure: Au
The zero advance. This is usually writing mode dependent
Trait Implementations
impl Clone for FontMetrics[src]
fn clone(&self) -> FontMetrics[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for FontMetrics[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl PartialEq for FontMetrics[src]
fn eq(&self, __arg_0: &FontMetrics) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &FontMetrics) -> bool[src]
This method tests for !=.