Browse Source

Update 9pt

pr/update_fontkit
Wesley Moore 4 years ago
parent
commit
c2c54414f0
No known key found for this signature in database
GPG Key ID: BF67766C0BC2D0EE
  1. BIN
      data/ProFont9Point.png
  2. BIN
      data/ProFont9Point.raw
  3. BIN
      data/ProFont9Point.xcf
  4. 2
      src/lib.rs

BIN
data/ProFont9Point.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
data/ProFont9Point.raw

Binary file not shown.

BIN
data/ProFont9Point.xcf

Binary file not shown.

2
src/lib.rs

@ -14,7 +14,7 @@ impl FontBuilderConf for ProFont9PointConf {
const FONT_IMAGE: &'static [u8] = include_bytes!("../data/ProFont9Point.raw");
const CHAR_HEIGHT: u32 = 11;
const CHAR_WIDTH: u32 = 6;
const FONT_IMAGE_WIDTH: u32 = 241;
const FONT_IMAGE_WIDTH: u32 = 240;
fn char_offset(c: char) -> u32 {
let fallback = '?' as u32 - ' ' as u32;
if c < ' ' {

Loading…
Cancel
Save