New font: Comfortaa

This commit is contained in:
Emil Ernerfeldt
2019-03-16 13:37:29 +01:00
parent 2c2450e67b
commit e06a4db7bc
7 changed files with 114 additions and 9 deletions
+3 -2
View File
@@ -65,9 +65,10 @@ impl Fonts {
let atlas = Arc::new(Mutex::new(atlas));
// TODO: figure out a way to make the wasm smaller despite including a font. Zip it?
// let typeface_data = include_bytes!("../fonts/ProggyClean.ttf"); // Use 13 for this. NOTHING ELSE.
let typeface_data = include_bytes!("../fonts/Comfortaa-Regular.ttf");
// let typeface_data = include_bytes!("../fonts/DejaVuSans.ttf");
let typeface_data = include_bytes!("../fonts/Roboto-Regular.ttf");
// let typeface_data = include_bytes!("../fonts/ProggyClean.ttf"); // Use 13 for this. NOTHING ELSE.
// let typeface_data = include_bytes!("../fonts/Roboto-Regular.ttf");
self.sizes = sizes.clone();
self.fonts = sizes
.into_iter()
+1 -1
View File
@@ -24,5 +24,5 @@ pub use crate::{
mesher::{Mesh, Vertex},
style::Style,
texture_atlas::Texture,
types::RawInput,
types::{Color, RawInput},
};