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

_______________________________________________
Stumpwm-devel mailing list
Stumpwm-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/stumpwm-devel

Reply via email to