Implemented point size

This commit is contained in:
2026-01-24 04:03:47 +00:00
parent 219e916af0
commit 26ac6bf5e4

View File

@@ -114,8 +114,8 @@ fn main() {
bdf_file.push_str("STARTFONT 2.1\n"); bdf_file.push_str("STARTFONT 2.1\n");
bdf_file.push_str("-u8g2_font_converted\n"); bdf_file.push_str("-u8g2_font_converted\n");
let font_pt = header.bound_box_height * (72/96); let font_pt = (header.bound_box_height * 3)/4;
bdf_file.push_str("SIZE 13 75 75\n"); bdf_file.push_str(&format!("SIZE {} 96 96\n", font_pt));
bdf_file.push_str( bdf_file.push_str(
&format!( &format!(
"FONTBOUNDINGBOX {} {} {} {}\n", "FONTBOUNDINGBOX {} {} {} {}\n",