Struct pdf_canvas::FontMetrics [] [src]

pub struct FontMetrics { /* fields omitted */ }

Relevant data that can be loaded from an AFM (Adobe Font Metrics) file. A FontMetrics object is specific to a given encoding.

Methods

impl FontMetrics
[src]

Create a FontMetrics by reading an .afm file.

Get the width of a specific character. The character is given in the encoding of the FontMetrics object.

Trait Implementations

impl Debug for FontMetrics
[src]

Formats the value using the given formatter.

impl Hash for FontMetrics
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl PartialEq for FontMetrics
[src]

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

This method tests for !=.

impl Eq for FontMetrics
[src]

impl Clone for FontMetrics
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more