Changeset 419


Ignore:
Timestamp:
Feb 25, 2019, 9:00:50 PM (6 years ago)
Author:
ataylor
Message:

NewView uses "Helv Combined" as default text font when running on DBCS OS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NewView/SettingsUnit.pas

    r311 r419  
    6666
    6767  DefaultTopicFontName = 'Helv';
     68  DefaultTopicFontNameDBCS = 'Helv Combined';
    6869  DefaultTopicFontSize = 8;
    6970
     
    319320
    320321      // Fonts
    321       NormalFont := Screen.GetFontFromPointSize(
    322         ReadString( FontsSection, 'NormalFont', DefaultTopicFontName ),
    323         ReadInteger( FontsSection, 'NormalFontSize', DefaultTopicFontSize ) );
     322      if Application.DBCSSystem then
     323        NormalFont := Screen.GetFontFromPointSize(
     324          ReadString( FontsSection, 'NormalFont', DefaultTopicFontNameDBCS ),
     325          ReadInteger( FontsSection, 'NormalFontSize', DefaultTopicFontSize ) )
     326      else
     327        NormalFont := Screen.GetFontFromPointSize(
     328          ReadString( FontsSection, 'NormalFont', DefaultTopicFontName ),
     329          ReadInteger( FontsSection, 'NormalFontSize', DefaultTopicFontSize ) );
    324330      if NormalFont = nil then
    325331        NormalFont := Screen.DefaultFont;
Note: See TracChangeset for help on using the changeset viewer.