Skip to content

Commit 9b1a896

Browse files
authored
Merge pull request #497 from k-okada/fix_no_x_font
[WSL] XFonts is not available on wslg: Try to use default font set if…
2 parents 7b15453 + a5f48c7 commit 9b1a896

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)