ソースを参照

Pick up the correct font

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@36390 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 16 年 前
コミット
98a81ff878
1 ファイル変更1 行追加2 行削除
  1. 1 2
      lib/driver/Font.c

+ 1 - 2
lib/driver/Font.c

@@ -121,7 +121,7 @@ void COM_Set_font(const char *name)
 	    if (!parse_fontcap_entry(&cap, list[i]))
 		continue;
 
-	    if (cap.type != GFONT_DRIVER)
+	    if (cap.type != GFONT_DRIVER || strcmp(name, cap.name) != 0)
 		continue;
 
 	    driver_set(cap.name);
@@ -157,4 +157,3 @@ void COM_Font_info(char ***list, int *count)
     if (driver->Font_info)
 	(*driver->Font_info)(list, count);
 }
-