Struct font_atlas::rasterize::Font [] [src]

pub struct Font { /* fields omitted */ }

A single font loaded from a file.

Methods

impl Font
[src]

[src]

Construct a new Font from a rusttype::Font.

[src]

Renders a character from this font at a given scale into a pair of (CharInfo, Bitmap).

If the character isn't handled by the font, None is returned.

[src]

Creates an atlas for a set of characters rendered at a given scale.

margin is the distance between characters in pixels. width and height denote the starting size of the bitmap.

The resulting bitmap may be larger than width x height in order to fit all of the characters.

Trait Implementations

impl Clone for Font
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Font
[src]

[src]

Formats the value using the given formatter.