From ace4da505b76e7db8766b395633603c491026c8f Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sun, 30 Apr 2023 09:54:25 +0200 Subject: use first font as default box --- drw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drw.c') diff --git a/drw.c b/drw.c index a131623..766220d 100644 --- a/drw.c +++ b/drw.c @@ -226,7 +226,7 @@ create_font_cache(FontPath *fontpath, int size, unsigned fontsize) void font_cache_generate_box(FontCache *fontcache) { - Font *font = get_font_with_charcode(fontcache, 0); + Font *font = get_font_with_charcode(fontcache, 'a'); FT_Set_Pixel_Sizes(font->face, 0, fontcache->fontsize); fontcache->box.width = ((font->face->size->metrics.max_advance) >> 6); fontcache->box.height = (font->face->size->metrics.height) >> 6; -- cgit v1.2.3-70-g09d2