aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.h14
-rw-r--r--drw.c2
2 files changed, 11 insertions, 5 deletions
diff --git a/config.h b/config.h
index 2da7134..19fa81d 100644
--- a/config.h
+++ b/config.h
@@ -16,10 +16,16 @@ static FontPath fonts[] = {
"/usr/share/fonts/TTF/Sauce Code Pro Italic Nerd Font Complete Mono.ttf", /* Bold-Italic */
},
{
- "/usr/share/fonts/gnu-free/FreeMono.otf", /* Normal */
- "/usr/share/fonts/gnu-free/FreeMonoOblique.otf", /* Italic */
- "/usr/share/fonts/gnu-free/FreeMonoBold.otf", /* Bold */
- "/usr/share/fonts/gnu-free/FreeMonoBoldOblique.otf" /* Bold-Italic */
+ "/usr/share/fonts/gnu-free/FreeMono.otf", /* Normal */
+ "/usr/share/fonts/gnu-free/FreeMonoOblique.otf", /* Italic */
+ "/usr/share/fonts/gnu-free/FreeMono.otf", /* Bold */
+ "/usr/share/fonts/gnu-free/FreeMonoOblique.otf" /* Bold-Italic */
+ },
+ {
+ "/usr/share/fonts/noto/NotoSansMono-Regular.ttf", /* Normal */
+ "/usr/share/fonts/noto/NotoSansMono-Regular.ttf", /* Italic */
+ "/usr/share/fonts/noto/NotoSansMono-Regular.ttf", /* Bold */
+ "/usr/share/fonts/noto/NotoSansMono-Regular.ttf", /* Bold-Italic */
},
};
int boldstokemode = 1;
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;