@@ -12,8 +12,8 @@ const cozette_bold_ttf = assets.files.fonts.@"CozetteVectorBold.ttf";
1212const comfortaa_ttf = assets .files .fonts .@"Comfortaa-Regular.ttf" ;
1313const comfortaa_bold_ttf = assets .files .fonts .@"Comfortaa-Bold.ttf" ;
1414
15- const noto_sans_ttf = assets .files .fonts .@"NotoSans-Light .ttf" ;
16- const noto_sans_bold_ttf = assets .files .fonts .@"NotoSans -Bold.ttf" ;
15+ const plus_jakarta_sans_ttf = assets .files .fonts .@"PlusJakartaSans-Regular .ttf" ;
16+ const plus_jakarta_sans_bold_ttf = assets .files .fonts .@"PlusJakartaSans -Bold.ttf" ;
1717
1818const fizzy = @import ("../fizzy.zig" );
1919const dvui = @import ("dvui" );
@@ -165,14 +165,13 @@ const embedded_fonts: []const dvui.Font.Source = &.{
165165 .bytes = comfortaa_bold_ttf ,
166166 .weight = .bold ,
167167 },
168-
169168 .{
170- .family = dvui .Font .array ("NotoSans " ),
171- .bytes = noto_sans_ttf ,
169+ .family = dvui .Font .array ("PlusJakartaSans " ),
170+ .bytes = plus_jakarta_sans_ttf ,
172171 },
173172 .{
174- .family = dvui .Font .array ("NotoSans " ),
175- .bytes = noto_sans_bold_ttf ,
173+ .family = dvui .Font .array ("PlusJakartaSans " ),
174+ .bytes = plus_jakarta_sans_bold_ttf ,
176175 .weight = .bold ,
177176 },
178177};
@@ -264,9 +263,9 @@ pub fn init(
264263
265264 fizzy_dark .dark = true ;
266265 fizzy_dark .name = "Fizzy Dark" ;
267- fizzy_dark .font_body = .find (.{ .family = "Comfortaa" , .size = editor .settings .font_body_size , . weight = .bold });
268- fizzy_dark .font_title = .find (.{ .family = "NotoSans " , .size = editor .settings .font_title_size , .weight = .bold });
269- fizzy_dark .font_heading = .find (.{ .family = "NotoSans " , .size = editor .settings .font_heading_size , .weight = .bold });
266+ fizzy_dark .font_body = .find (.{ .family = "Comfortaa" , .size = editor .settings .font_body_size });
267+ fizzy_dark .font_title = .find (.{ .family = "Comfortaa " , .size = editor .settings .font_title_size , .weight = .bold });
268+ fizzy_dark .font_heading = .find (.{ .family = "PlusJakartaSans " , .size = editor .settings .font_heading_size , .weight = .bold });
270269 fizzy_dark .font_mono = .find (.{ .family = "CozetteVector" , .size = editor .settings .font_mono_size });
271270
272271 var moi : dvui.Theme = fizzy_dark ;
@@ -493,6 +492,32 @@ pub fn applySettingsTheme(editor: *Editor) !void {
493492 }
494493 dvui .themeSet (t .* );
495494 editor .applyFontSizesFromSettings ();
495+
496+ // TEMP diagnostic: dump every Source registered in the font database, plus
497+ // the active theme's heading/title font specs. Helps confirm whether the
498+ // Comfortaa-Bold entry actually made it in and what weight font_heading asks for.
499+ {
500+ const cw = dvui .currentWindow ();
501+ dvui .log .info ("[font-debug] active theme: {s}" , .{cw .theme .name });
502+ dvui .log .info ("[font-debug] font_heading: family={s} weight={s} size={d}" , .{
503+ cw .theme .font_heading .familyName (),
504+ @tagName (cw .theme .font_heading .weight ),
505+ cw .theme .font_heading .size ,
506+ });
507+ dvui .log .info ("[font-debug] font_title: family={s} weight={s} size={d}" , .{
508+ cw .theme .font_title .familyName (),
509+ @tagName (cw .theme .font_title .weight ),
510+ cw .theme .font_title .size ,
511+ });
512+ for (cw .fonts .database .items , 0.. ) | src , i | {
513+ dvui .log .info ("[font-debug] db[{d}]: family={s} weight={s} bytes.ptr={x}" , .{
514+ i ,
515+ src .familyName (),
516+ @tagName (src .weight ),
517+ @intFromPtr (src .bytes .ptr ),
518+ });
519+ }
520+ }
496521}
497522
498523pub fn currentGroupingID (editor : * Editor ) u64 {
0 commit comments