From 26ac6bf5e4d1540a8feef9b284306f6f500c2cd6 Mon Sep 17 00:00:00 2001 From: Jason Date: Sat, 24 Jan 2026 04:03:47 +0000 Subject: [PATCH] Implemented point size --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index e92ec0f..a4bf74b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -114,8 +114,8 @@ fn main() { bdf_file.push_str("STARTFONT 2.1\n"); bdf_file.push_str("-u8g2_font_converted\n"); - let font_pt = header.bound_box_height * (72/96); - bdf_file.push_str("SIZE 13 75 75\n"); + let font_pt = (header.bound_box_height * 3)/4; + bdf_file.push_str(&format!("SIZE {} 96 96\n", font_pt)); bdf_file.push_str( &format!( "FONTBOUNDINGBOX {} {} {} {}\n",