Skip to content

gifnksm/ttf-noto-sans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Noto Sans TrueType fonts for Rust applications

Travis CI Build Status crates.io

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"] }

Example (use with conrod)

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

About

Noto Sans TTF fonts for embedding into your application binary.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages