aboutsummaryrefslogtreecommitdiff
path: root/drw.c
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-04-30 09:54:25 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2023-04-30 09:54:25 +0200
commitace4da505b76e7db8766b395633603c491026c8f (patch)
treec277503d0a94ca362e132668789b99b04f31c1c0 /drw.c
parent3ef194542030652633bc562bbe591e9fe68a8139 (diff)
use first font as default box
Diffstat (limited to 'drw.c')
-rw-r--r--drw.c2
1 files changed, 1 insertions, 1 deletions
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;