Trait texlang_font::FontRepo

source ·
pub trait FontRepo {
    type Format: Format;

    // Required method
    fn add_font(&mut self, id: Font, font: Self::Format);
}
Expand description

A font repository is where font data is stored.

We currently envisage that typesetting engines will contain a font repo that they will use for getting font metric data.

Required Associated Types§

source

type Format: Format

Format of files that are store in this repo

Required Methods§

source

fn add_font(&mut self, id: Font, font: Self::Format)

Implementors§

source§

impl<T: Format> FontRepo for NoOpFontRepo<T>