2
0
Эх сурвалжийг харах

CompForm: Stop using special font on CP 932 (Japanese).

As the now-deleted comment stated, the inability of Courier New to display Japanese characters should have been fixed in Windows XP.
Jordan Russell 5 жил өмнө
parent
commit
f361db8bcf
1 өөрчлөгдсөн 0 нэмэгдсэн , 7 устгасан
  1. 0 7
      Projects/CompForm.pas

+ 0 - 7
Projects/CompForm.pas

@@ -587,13 +587,6 @@ constructor TCompileForm.Create(AOwner: TComponent);
       I := Ini.ReadInteger('Options', 'ThemeType', Ord(GetDefaultThemeType));
       if (I >= 0) and (I <= Ord(High(TThemeType))) then
         FOptions.ThemeType := TThemeType(I);
-      if GetACP = 932 then begin
-        { Default to MS Gothic font on CP 932 (Japanese), as Courier New is
-          only capable of displaying Japanese characters on XP and later. }
-        FMainMemo.Font.Name := 'MS Gothic';
-        FMainMemo.Font.Size := 9;
-        FMainMemo.Font.Charset := SHIFTJIS_CHARSET;
-      end;
       FMainMemo.Font.Name := Ini.ReadString('Options', 'EditorFontName', FMainMemo.Font.Name);
       FMainMemo.Font.Size := Ini.ReadInteger('Options', 'EditorFontSize', FMainMemo.Font.Size);
       FMainMemo.Font.Charset := Ini.ReadInteger('Options', 'EditorFontCharset', FMainMemo.Font.Charset);