Struct genpdf::fonts::Font [−][src]
pub struct Font { /* fields omitted */ }
Expand description
A reference to a font cached by a FontCache
.
See the module documentation for details on the internals.
Implementations
Returns whether this font is a built-in PDF font.
Returns the line height for text with this font and the given font size.
Returns the glyph height for text with this font and the given font size.
Returns the width of a character with this font and the given font size.
The given FontCache
must be the font cache that loaded this font.
Returns the width of a string with this font and the given font size.
The given FontCache
must be the font cache that loaded this font.
Returns the kerning data for the given sequence of characters.
The i-th value of the returned data is the amount of kerning to insert before the i-th character of the sequence.
The given FontCache
must be the font cache that loaded this font.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Font
impl UnwindSafe for Font
Blanket Implementations
Mutably borrows from an owned value. Read more