Browse Source

use ISO font by default unless explicitly disabled in language file (which shouldn't be a problem for European languages now)

Wei Mingzhi 6 years ago
parent
commit
573cb80a59
2 changed files with 3 additions and 2 deletions
  1. 1 2
      font.c
  2. 2 0
      text.c

+ 1 - 2
font.c

@@ -269,13 +269,12 @@ PAL_LoadUserFont(
                bytes_consumed += bytes_now;
                if (got_size == 16 || got_size == 15)
                {
+                  _font_height = got_size;
                   got_expected = TRUE;
                }
             }
             if (!got_expected)
                TerminateOnError("%s not contains expected font size 15/16!", pszBdfFileName);
-
-            _font_height = got_size;
          }
          else if (strncmp(buf, "BBX", 3) == 0)
          {

+ 2 - 0
text.c

@@ -603,6 +603,8 @@ PAL_InitText(
 
 --*/
 {
+   g_TextLib.fUseISOFont = TRUE;
+
    if (gConfig.pszMsgFile)
    {
 	   //