Struct nanovg::TextMetrics[][src]

pub struct TextMetrics {
    pub ascender: f32,
    pub descender: f32,
    pub line_height: f32,
}

Struct to store measured text metrics computed with Context::text_metrics

Fields

Trait Implementations

impl Clone for TextMetrics
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for TextMetrics
[src]

impl Debug for TextMetrics
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for TextMetrics

impl Sync for TextMetrics