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

The x-height of the font.

The zero advance. This is usually writing mode dependent

Trait Implementations

impl Clone for FontMetrics
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for FontMetrics
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for FontMetrics
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.