Trait pdf_min::font::Font

source ·
pub trait Font {
    // Required methods
    fn obj(&self) -> usize;
    fn encode(&self, s: &str, to: &mut Vec<u8>);
    fn init(&mut self, w: &mut BasicPdfWriter, name: &str);
}
Expand description

Required Methods§

source

fn obj(&self) -> usize

Get the PDF object number.

source

fn encode(&self, s: &str, to: &mut Vec<u8>)

Encode string.

source

fn init(&mut self, w: &mut BasicPdfWriter, name: &str)

Initialise the font by writing defition to w.

Implementors§