Skip to content

Commit a5f48c7

Browse files
committed
[WSL] XFonts is not available on wslg: Try to use default font set if font-cour12 is not found
1 parent 7b15453 commit a5f48c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lisp/xwindow/Xtop.l

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@
232232
(setq font-helvetica-12 (font-id "*-Helvetica-Medium-R-Normal-*-12-*"))
233233
(setq font-a14 (font-id "*-fixed-medium-r-normal-*-14-*"))
234234

235+
(when (zerop font-cour12) ;; If we can not find font-cour12, use default value for all element
236+
(setq font-cour12 (font-id "*-*-*-*-*-*-*-*")))
237+
235238
(when (zerop font-cour12) ;; this is default gc
236239
(setq *display* 0)
237240
(warning-message 1 "~%Xserver connection failed due to missing font server, please try after computer restarts~%")

0 commit comments

Comments
 (0)