shithub: vim

Download patch

ref: 199880ade9f3f131ad1541f1156acfcbb9478fc4
parent: 74343d66b2ba1043577dbb6a02f97d5e06b3a7c5
author: phil9 <telephil9@gmail.com>
date: Thu Sep 2 15:30:09 EDT 2021

Use default rio font

	The normal text font was hardcoded instead of using the
	conventional rio default font as defined in /env/font.

--- a/os_plan9.c
+++ b/os_plan9.c
@@ -916,7 +916,14 @@
 }
 
 static void init_fonts(void) {
-    normalfont = openfont(display, "/lib/font/bit/fixed/unicode.9x18.font");
+    char *n;
+
+    n = getenv("font");
+    if(n)
+	normalfont = openfont(display, n);
+    else
+	normalfont = openfont(display, "/lib/font/bit/fixed/unicode.9x18.font");
+	
     if (normalfont == nil) {
         err9("openfont normal failed");
     }