diff --git a/src/main.rs b/src/main.rs index c6b8572..92121b7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -129,8 +129,8 @@ fn gen_svg() -> Document { .time() .num_seconds_from_midnight() as i32; - let local_hour_font_size = 16.5; - let hour_name_font_size = 13.37699; + let local_hour_font_size = image_width as f32 * 0.02357; + let hour_name_font_size = image_width as f32 * 0.019109; let utc_hour_font_size = image_width as f32 * 0.021462; let outer_r = (image_width as f32) / 2.0 - 3.0 * hour_name_font_size; let ring_width = hour_name_font_size * 3.0;