Crates.io | ttf-noto-sans |
lib.rs | ttf-noto-sans |
version | 0.1.2 |
source | src |
created_at | 2017-02-02 15:40:10.419023 |
updated_at | 2023-03-05 12:22:46.47025 |
description | Noto Sans TrueType fonts for embedding into your application binary. |
homepage | |
repository | https://github.com/gifnksm/ttf-noto-sans |
max_upload_size | |
id | 8354 |
size | 899,040 |
You can use embedded font data from your application.
By default, regular style font is embedded.
[package]
ttf-noto-sans = "0.1"
You can also use other style fonts by specifying custom features.
[package]
ttf-noto-sans = { version = "0.1", features = ["bold", "italic", "bold_italic"] }
extern crate 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)
.into_font()
.expect("failed to into_font"));
Complete example is here