Browse Source

also check for GB2312 in addition to GBK when loading bdf fonts

Wei Mingzhi 6 years ago
parent
commit
6be26cc0e6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      font.c

+ 1 - 1
font.c

@@ -234,7 +234,7 @@ PAL_LoadUserFont(
             {
                codepage = CP_BIG5;
             }
-            else if (strcasestr(buf, "GBK") != NULL)
+            else if (strcasestr(buf, "GBK") != NULL || strcasestr(buf, "GB2312") != NULL)
             {
                codepage = CP_GBK;
             }