stark / siji

An iconic bitmap font based on Stlarch with additional glyphs.
https://git.io/siji
GNU General Public License v2.0
807 stars 37 forks source link

How to specify the default fallback font for normal alphabet characters #23

Closed oimaasi closed 6 years ago

oimaasi commented 6 years ago

I want to use Siji icons to indicate workspaces in dwm, in combination with Terminus font for window titles and date etc. Currently I have the following setting in config.h

static const char *fonts[] = { "Wuncon Siji" /* Iconic Glyphs */
","
 "Terminus:pixelsize=20"    /* For Normal Text */
};

The problem is that if I place Siji before Terminus, the workspace icons are correctly displayed, but the text will fallback to another font which I don't want. On the other hand, when Terminus is placed before Siji, normal texts are OK, but the icons are replaced with some random Kanji.

Any suggestions?

Or it was the wrong way to specify multiple fonts in dwm? Anyway, the dwm-related example shown in the Github frontpage seems to be outdated ...

oimaasi commented 6 years ago

It should be

static const char *fonts[] = { "Terminus:pixelsize=16:antialias=true:autohint=true" , "Wuncon Siji" };

then both fonts work.