msdfgen 0.2.1

Safe bindings for msdfgen (multi-channel signed distance field generator)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[cfg(feature = "ttf-parser")]
mod ttf_parser;

#[cfg(feature = "font")]
mod font;

#[cfg(feature = "freetype-rs")]
mod freetype_rs;

use crate::Shape;

/// Extensions for font objects
pub trait FontExt {
    type Glyph;

    /// Crates a shape for specific glyph of font
    fn glyph_shape(&self, glyph: Self::Glyph) -> Option<Shape>;
}