Search
Wednesday, 5th of December 2018, 16:44:58 UTC
16:51:32
mbuf
plathrop, I just used (set-font "fixed"), and this font is readable; I can live this for now
17:19:38
plathrop
mbuf: Sorry, was afk doing work
17:20:15
plathrop
The "util/ttf-fonts" is just the stumpwm module. You shouldn't need to set the location of your fonts, clx-truetype does the "right thing" by default usually
17:21:12
plathrop
I'm glad you found something that worked. I struggled figuring out what exactly set-font was expecting, too
17:21:47
plathrop
Did you run the (xft:cache-fonts)? That's super important
17:22:35
plathrop
let me see where my font is, 1 sec
17:24:06
plathrop
My font is installed in ~/.fonts/truetype/Monoid
17:24:18
plathrop
I'm going to see if I can get it to find the DejaVu font on my side
17:26:08
plathrop
STUMPWM-USER> xft:*font-dirs*
17:26:08
plathrop
("/usr/share/fonts/" "/home/plathrop/.fonts/")
17:27:09
plathrop
my dejavu fonts are in /usr/share/fonts/truetype
17:27:23
mbuf
plathrop, how did you get to that prompt?
17:29:07
plathrop
I'm using emacs to connect to a slynk server I run from my stumpwm process... it's a little complex
17:30:09
plathrop
STUMPWM-USER> (xft:get-font-subfamilies "DejaVu Sans Mono")
17:30:38
plathrop
STUMPWM-USER> (make-instance'xft:font :family "DejaVu Sans Mono" :subfamily "Book")
17:30:38
plathrop
#<'CLX-TRUETYPE:FONT :FAMILY "DejaVu Sans Mono" :SUBFAMILY "Book" :UNDERLINE NIL :STRIKETHROUGH NIL :OVERLINE NIL :BACKGROUND NIL :FOREGROUND NIL :OVERWRITE-GCONTEXT NIL :ANTIALIAS T>
17:30:55
plathrop
So I think if you make sure that xft:*font-dirs* has
17:31:09
plathrop
er. has /usr/share/fonts
17:31:51
plathrop
and then replace my (defparameter *font* (make-instance ...)) with the above, it _should_ work
17:32:15
mbuf
plathrop, how do I update xft:*font-dirs*?
17:34:23
mbuf
plathrop, (setf xft:*font-dirs* '("/usr/share/fonts"))
17:34:37
plathrop
In your stump init file you could do (pushnew "/usr/share/fonts/" xft:*font-dirs*)
17:34:56
plathrop
or yeah you could setf it if you're sure nothing else should be modifying it that you don't want to overwrite
17:41:44
mbuf
plathrop, still getting the same error;
17:42:00
mbuf
plathrop, I will just stick with (set-font "fixed") for now; thanks!
Thursday, 6th of December 2018, 4:44:58 UTC