stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[STUMP] Unable to load a TTF font in StumpWM


From: Christopher Culver
Subject: [STUMP] Unable to load a TTF font in StumpWM
Date: Wed, 17 Apr 2019 23:08:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)

I was interested in using both two fonts in my modeline, i.e. a standard
mono font and an emoji font that would provide e.g. wifi and battery
symbols. This commit:

https://github.com/stumpwm/stumpwm/commit/47368b3a6cf7072b3487246cb23fa812064df94c

suggests that users can now load multiple fonts by loading the module
"ttf-fonts" and then passing two arguments to the set-font function. I
tried to do just that:

(set-font (make-instance 'xft:font :family "DejaVu Sans Mono" :subfamily "Book" 
:size 12)
          (make-instance 'xft:font :family "Noto Color Emoji" :subfamily 
"Regular" :size 12))

Strangely, I am unable to load Noto Color Emoji. StumpWM gives an error
that no such font is found. However, the output of fc-list shows:

/usr/share/fonts/TTF/NotoColorEmoji.ttf: Noto Color Emoji:style=Regular

Therefore, I assume that I am passing it correctly to (set-font...). Is
there any reason why StumpWM’s ttf-fonts module would not be able to
load Noto Color Emoji?

(I don’t think this error has anything to do with trying to pass two
fonts to the set-font function. I get the error that Noto Color Emoji is
not found even when I pass it as the only argument to set-fonts.)

Christopher Culver



reply via email to

[Prev in Thread] Current Thread [Next in Thread]