Skip to main content

FontRefExt

Trait FontRefExt 

Source
pub trait FontRefExt {
    // Required methods
    fn get_bytes(&self) -> &[u8] ;
    fn get_full_font_metrics(&self) -> FontMetrics;
}
Expand description

Extension trait for FontRef to provide access to font bytes and metrics

This trait provides methods that require access to the inner ParsedFont data.

Required Methods§

Source

fn get_bytes(&self) -> &[u8]

Get the original font bytes

Source

fn get_full_font_metrics(&self) -> FontMetrics

Get the full font metrics (PDF-style metrics from HEAD, HHEA, OS/2 tables)

Implementations on Foreign Types§

Source§

impl FontRefExt for FontRef

Implementors§