Crate ttf_noto_sans

source ·
Expand description

Noto Sans True Type fonts for embedding into your application binary.

By default, regular style font is embedded.

ttf-noto-sans = "0.1"

You can also use other style fonts by specifying custom features.

ttf-noto-sans = { version = "0.1", features = ["bold", "italic", "bold_italic"] }

Example (use with conrod)

use conrod::UiBuilder;
use conrod::text::FontCollection;

let mut ui = UiBuilder::new([640.0, 480.0]).build();
let _ = ui.fonts.insert(FontCollection::from_bytes(ttf_noto_sans::REGULAR)
    .expect("failed to into_font"));

Complete example is here