Struct truetype::horizontal_metrics::HorizontalMetrics [] [src]

pub struct HorizontalMetrics {
    pub records: Vec<Record>,
    pub left_side_bearings: Vec<i16>,
}

Horizontal metrics.

Fields

records: Vec<Record> left_side_bearings: Vec<i16>

Methods

impl HorizontalMetrics
[src]

fn get(&self, index: usize) -> (u16, i16)

Return the advance width and left side bearing.

Trait Implementations

impl PartialEq for HorizontalMetrics
[src]

fn eq(&self, __arg_0: &HorizontalMetrics) -> bool

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

fn ne(&self, __arg_0: &HorizontalMetrics) -> bool

This method tests for !=.

impl Eq for HorizontalMetrics
[src]

impl Debug for HorizontalMetrics
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for HorizontalMetrics
[src]

fn clone(&self) -> HorizontalMetrics

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<'l> Walue<(&'l HorizontalHeader, &'l MaximumProfile)> for HorizontalMetrics
[src]

fn read<T: Tape>(tape: &mut T, (header, profile): (&HorizontalHeader, &MaximumProfile)) -> Result<Self>

Read a value.