فهرست منبع

Temporary reverting font to Tahoma:8 (from default BCB 11's Segoe UI:9) to match the windows layout

Source commit: 815a497dffe349865a283f50ec0cd4af92cb3489
Martin Prikryl 1 سال پیش
والد
کامیت
e55f27dab3
42فایلهای تغییر یافته به همراه208 افزوده شده و 46 حذف شده
  1. 2 0
      source/WinSCP.cpp
  2. 5 1
      source/forms/About.dfm
  3. 5 1
      source/forms/Authenticate.dfm
  4. 5 1
      source/forms/Cleanup.dfm
  5. 5 1
      source/forms/Console.dfm
  6. 5 1
      source/forms/Copy.dfm
  7. 5 1
      source/forms/CopyLocal.dfm
  8. 5 1
      source/forms/CopyParamCustom.dfm
  9. 5 1
      source/forms/CopyParamPreset.dfm
  10. 6 0
      source/forms/CopyParams.dfm
  11. 5 1
      source/forms/CreateDirectory.dfm
  12. 5 1
      source/forms/Custom.dfm
  13. 5 1
      source/forms/CustomCommand.dfm
  14. 5 1
      source/forms/CustomScpExplorer.dfm
  15. 5 1
      source/forms/EditMask.dfm
  16. 5 1
      source/forms/Editor.dfm
  17. 5 1
      source/forms/EditorPreferences.dfm
  18. 5 1
      source/forms/FileFind.dfm
  19. 5 1
      source/forms/FileSystemInfo.dfm
  20. 5 1
      source/forms/FullSynchronize.dfm
  21. 5 1
      source/forms/GenerateUrl.dfm
  22. 5 1
      source/forms/ImportSessions.dfm
  23. 5 1
      source/forms/License.dfm
  24. 5 1
      source/forms/LocationProfiles.dfm
  25. 5 1
      source/forms/Login.dfm
  26. 3 1
      source/forms/MessageDlg.cpp
  27. 5 1
      source/forms/MessageDlg.dfm
  28. 5 1
      source/forms/OpenDirectory.dfm
  29. 5 1
      source/forms/Preferences.dfm
  30. 5 1
      source/forms/Progress.dfm
  31. 5 1
      source/forms/Properties.dfm
  32. 5 1
      source/forms/RemoteTransfer.dfm
  33. 6 0
      source/forms/Rights.dfm
  34. 5 1
      source/forms/SelectMask.dfm
  35. 5 1
      source/forms/SiteAdvanced.dfm
  36. 5 1
      source/forms/Symlink.dfm
  37. 5 1
      source/forms/Synchronize.dfm
  38. 5 1
      source/forms/SynchronizeChecklist.dfm
  39. 5 1
      source/forms/SynchronizeProgress.dfm
  40. 1 1
      source/windows/UserInterface.cpp
  41. 10 4
      source/windows/VCLCommon.cpp
  42. 5 5
      source/windows/VCLCommon.h

+ 2 - 0
source/WinSCP.cpp

@@ -62,6 +62,8 @@ WINAPI wWinMain(HINSTANCE, HINSTANCE, LPWSTR, int)
     Application->Initialize();
     Application->MainFormOnTaskBar = true;
     Application->ModalPopupMode = pmAuto;
+    Application->DefaultFont->Name = L"Tahoma";
+    Application->DefaultFont->Height = -11;
     SetEnvironmentVariable(L"WINSCP_PATH",
       ExcludeTrailingBackslash(ExtractFilePath(Application->ExeName)).c_str());
     CoreInitialize();

+ 5 - 1
source/forms/About.dfm

@@ -9,7 +9,11 @@ object AboutDialog: TAboutDialog
   ClientHeight = 501
   ClientWidth = 410
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   KeyPreview = True
   Position = poOwnerFormCenter
   OnKeyDown = FormKeyDown

+ 5 - 1
source/forms/Authenticate.dfm

@@ -11,7 +11,11 @@ object AuthenticateForm: TAuthenticateForm
   Color = clBtnFace
   Constraints.MinHeight = 200
   Constraints.MinWidth = 280
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnResize = FormResize
   OnShow = FormShow

+ 5 - 1
source/forms/Cleanup.dfm

@@ -9,7 +9,11 @@ object CleanupDialog: TCleanupDialog
   ClientHeight = 299
   ClientWidth = 489
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnShow = FormShow
   DesignSize = (

+ 5 - 1
source/forms/Console.dfm

@@ -10,7 +10,11 @@ object ConsoleDialog: TConsoleDialog
   Color = clBtnFace
   Constraints.MinHeight = 250
   Constraints.MinWidth = 420
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Icon.Data = {
     000001000700404000000100200028420000760000003030000001002000A825
     00009E4200002828000001002000681A0000466800002020000001002000A810

+ 5 - 1
source/forms/Copy.dfm

@@ -9,7 +9,11 @@ object CopyDialog: TCopyDialog
   ClientHeight = 225
   ClientWidth = 511
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnCloseQuery = FormCloseQuery
   OnShow = FormShow

+ 5 - 1
source/forms/CopyLocal.dfm

@@ -9,7 +9,11 @@ object CopyLocalDialog: TCopyLocalDialog
   ClientHeight = 121
   ClientWidth = 511
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnCloseQuery = FormCloseQuery
   OnShow = FormShow

+ 5 - 1
source/forms/CopyParamCustom.dfm

@@ -9,7 +9,11 @@ object CopyParamCustomDialog: TCopyParamCustomDialog
   ClientHeight = 515
   ClientWidth = 420
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnCloseQuery = FormCloseQuery
   DesignSize = (

+ 5 - 1
source/forms/CopyParamPreset.dfm

@@ -9,7 +9,11 @@ object CopyParamPresetDialog: TCopyParamPresetDialog
   ClientHeight = 560
   ClientWidth = 675
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnCloseQuery = FormCloseQuery
   OnShow = FormShow

+ 6 - 0
source/forms/CopyParams.dfm

@@ -4,6 +4,12 @@ object CopyParamsFrame: TCopyParamsFrame
   Width = 420
   Height = 477
   HelpType = htKeyword
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
+  ParentFont = False
   TabOrder = 0
   object CommonPropertiesGroup: TGroupBox
     Left = 212

+ 5 - 1
source/forms/CreateDirectory.dfm

@@ -9,7 +9,11 @@ object CreateDirectoryDialog: TCreateDirectoryDialog
   ClientHeight = 253
   ClientWidth = 337
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnCloseQuery = FormCloseQuery
   OnShow = FormShow

+ 5 - 1
source/forms/Custom.dfm

@@ -7,7 +7,11 @@ object CustomDialog: TCustomDialog
   ClientHeight = 41
   ClientWidth = 326
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   DesignSize = (
     326

+ 5 - 1
source/forms/CustomCommand.dfm

@@ -9,7 +9,11 @@ object CustomCommandDialog: TCustomCommandDialog
   ClientHeight = 309
   ClientWidth = 416
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnCloseQuery = FormCloseQuery
   OnShow = FormShow

+ 5 - 1
source/forms/CustomScpExplorer.dfm

@@ -5,7 +5,11 @@ object CustomScpExplorerForm: TCustomScpExplorerForm
   ClientHeight = 432
   ClientWidth = 620
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   KeyPreview = True
   OnClose = FormClose
   OnCloseQuery = FormCloseQuery

+ 5 - 1
source/forms/EditMask.dfm

@@ -9,7 +9,11 @@ object EditMaskDialog: TEditMaskDialog
   ClientHeight = 500
   ClientWidth = 425
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   KeyPreview = True
   Position = poOwnerFormCenter
   OnCloseQuery = FormCloseQuery

+ 5 - 1
source/forms/Editor.dfm

@@ -8,7 +8,11 @@ object EditorForm: TEditorForm
   ClientHeight = 381
   ClientWidth = 609
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Icon.Data = {
     000001000700404000000100200028420000760000003030000001002000A825
     00009E4200002828000001002000681A0000466800002020000001002000A810

+ 5 - 1
source/forms/EditorPreferences.dfm

@@ -9,7 +9,11 @@ object EditorPreferencesDialog: TEditorPreferencesDialog
   ClientHeight = 389
   ClientWidth = 403
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnCloseQuery = FormCloseQuery
   OnShow = FormShow

+ 5 - 1
source/forms/FileFind.dfm

@@ -10,7 +10,11 @@ object FileFindDialog: TFileFindDialog
   Color = clBtnFace
   Constraints.MinHeight = 240
   Constraints.MinWidth = 400
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Icon.Data = {
     000001000700404000000100200028420000760000003030000001002000A825
     00009E4200002828000001002000681A0000466800002020000001002000A810

+ 5 - 1
source/forms/FileSystemInfo.dfm

@@ -9,7 +9,11 @@ object FileSystemInfoDialog: TFileSystemInfoDialog
   ClientHeight = 398
   ClientWidth = 371
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnShow = FormShow
   DesignSize = (

+ 5 - 1
source/forms/FullSynchronize.dfm

@@ -9,7 +9,11 @@ object FullSynchronizeDialog: TFullSynchronizeDialog
   ClientHeight = 477
   ClientWidth = 481
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnCloseQuery = FormCloseQuery
   OnShow = FormShow

+ 5 - 1
source/forms/GenerateUrl.dfm

@@ -11,7 +11,11 @@ object GenerateUrlDialog: TGenerateUrlDialog
   Color = clBtnFace
   Constraints.MinHeight = 300
   Constraints.MinWidth = 484
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnShow = FormShow
   DesignSize = (

+ 5 - 1
source/forms/ImportSessions.dfm

@@ -9,7 +9,11 @@ object ImportSessionsDialog: TImportSessionsDialog
   ClientHeight = 273
   ClientWidth = 375
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnShow = FormShow
   DesignSize = (

+ 5 - 1
source/forms/License.dfm

@@ -8,7 +8,11 @@ object LicenseDialog: TLicenseDialog
   ClientHeight = 320
   ClientWidth = 504
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   DesignSize = (
     504

+ 5 - 1
source/forms/LocationProfiles.dfm

@@ -9,7 +9,11 @@ object LocationProfilesDialog: TLocationProfilesDialog
   ClientHeight = 435
   ClientWidth = 557
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnShow = FormShow
   DesignSize = (

+ 5 - 1
source/forms/Login.dfm

@@ -10,7 +10,11 @@ object LoginDialog: TLoginDialog
   Color = clBtnFace
   Constraints.MinHeight = 399
   Constraints.MinWidth = 600
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   KeyPreview = True
   Position = poOwnerFormCenter
   OnCloseQuery = FormCloseQuery

+ 3 - 1
source/forms/MessageDlg.cpp

@@ -21,6 +21,7 @@
 #include <Setup.h>
 #include <WinApi.h>
 #include "MessageDlg.h"
+#include <Custom.h>
 //---------------------------------------------------------------------------
 #pragma resource "*.dfm"
 //---------------------------------------------------------------------------
@@ -78,7 +79,8 @@ __fastcall TMessageForm::TMessageForm(TComponent * AOwner) : TForm(AOwner)
   NeverAskAgainCheck = NULL;
   FUpdateForShiftStateTimer = NULL;
   UseSystemSettingsPre(this);
-  FDummyForm = new TForm(this);
+  // DFM-based form, to use the custom Tahoma font
+  FDummyForm = new TCustomDialog(EmptyStr);
   UseSystemSettings(FDummyForm);
 }
 //---------------------------------------------------------------------------

+ 5 - 1
source/forms/MessageDlg.dfm

@@ -7,7 +7,11 @@ object MessageForm: TMessageForm
   ClientHeight = 41
   ClientWidth = 326
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   TextHeight = 13
 end

+ 5 - 1
source/forms/OpenDirectory.dfm

@@ -9,7 +9,11 @@ object OpenDirectoryDialog: TOpenDirectoryDialog
   ClientHeight = 334
   ClientWidth = 405
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnShow = FormShow
   DesignSize = (

+ 5 - 1
source/forms/Preferences.dfm

@@ -9,7 +9,11 @@ object PreferencesDialog: TPreferencesDialog
   ClientHeight = 519
   ClientWidth = 545
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnCloseQuery = FormCloseQuery
   OnShortCut = FormShortCut

+ 5 - 1
source/forms/Progress.dfm

@@ -9,7 +9,11 @@ object ProgressForm: TProgressForm
   ClientHeight = 291
   ClientWidth = 360
   Color = clWindow
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   PopupMode = pmAuto
   Position = poOwnerFormCenter
   OnHide = FormHide

+ 5 - 1
source/forms/Properties.dfm

@@ -9,7 +9,11 @@ object PropertiesDialog: TPropertiesDialog
   ClientHeight = 416
   ClientWidth = 357
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnCloseQuery = FormCloseQuery
   OnShow = FormShow

+ 5 - 1
source/forms/RemoteTransfer.dfm

@@ -9,7 +9,11 @@ object RemoteTransferDialog: TRemoteTransferDialog
   ClientHeight = 179
   ClientWidth = 420
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnCloseQuery = FormCloseQuery
   OnShow = FormShow

+ 6 - 0
source/forms/Rights.dfm

@@ -3,6 +3,12 @@ object RightsFrame: TRightsFrame
   Top = 0
   Width = 239
   Height = 109
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
+  ParentFont = False
   TabOrder = 0
   OnContextPopup = FrameContextPopup
   object OthersButton: TSpeedButton

+ 5 - 1
source/forms/SelectMask.dfm

@@ -9,7 +9,11 @@ object SelectMaskDialog: TSelectMaskDialog
   ClientHeight = 186
   ClientWidth = 417
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poDesigned
   OnCloseQuery = FormCloseQuery
   OnShow = FormShow

+ 5 - 1
source/forms/SiteAdvanced.dfm

@@ -9,7 +9,11 @@ object SiteAdvancedDialog: TSiteAdvancedDialog
   ClientHeight = 432
   ClientWidth = 561
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnClose = FormClose
   OnCloseQuery = FormCloseQuery

+ 5 - 1
source/forms/Symlink.dfm

@@ -9,7 +9,11 @@ object SymlinkDialog: TSymlinkDialog
   ClientHeight = 183
   ClientWidth = 396
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   OnShow = FormShow
   DesignSize = (

+ 5 - 1
source/forms/Synchronize.dfm

@@ -9,7 +9,11 @@ object SynchronizeDialog: TSynchronizeDialog
   ClientHeight = 445
   ClientWidth = 468
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   KeyPreview = True
   Position = poOwnerFormCenter
   OnCloseQuery = FormCloseQuery

+ 5 - 1
source/forms/SynchronizeChecklist.dfm

@@ -8,7 +8,11 @@ object SynchronizeChecklistDialog: TSynchronizeChecklistDialog
   ClientHeight = 521
   ClientWidth = 695
   Color = clBtnFace
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Icon.Data = {
     000001000700404000000100200028420000760000003030000001002000A825
     00009E4200002828000001002000681A0000466800002020000001002000A810

+ 5 - 1
source/forms/SynchronizeProgress.dfm

@@ -7,7 +7,11 @@ object SynchronizeProgressForm: TSynchronizeProgressForm
   ClientHeight = 219
   ClientWidth = 424
   Color = clWindow
-  ParentFont = True
+  Font.Charset = DEFAULT_CHARSET
+  Font.Color = clWindowText
+  Font.Height = -11
+  Font.Name = 'Tahoma'
+  Font.Style = []
   Position = poOwnerFormCenter
   DesignSize = (
     424

+ 1 - 1
source/windows/UserInterface.cpp

@@ -115,7 +115,7 @@ void __fastcall FlashOnBackground()
   }
 }
 //---------------------------------------------------------------------------
-void __fastcall LocalSystemSettings(TCustomForm * /*Control*/)
+void __fastcall LocalSystemSettings(TForm * /*Control*/)
 {
   // noop
 }

+ 10 - 4
source/windows/VCLCommon.cpp

@@ -1163,7 +1163,7 @@ void __fastcall ApplySystemSettingsOnControl(TControl * Control)
 }
 //---------------------------------------------------------------------------
 // Settings that must be set as soon as possible.
-void __fastcall UseSystemSettingsPre(TCustomForm * Control)
+void __fastcall UseSystemSettingsPre(TForm * Control)
 {
   LocalSystemSettings(Control);
 
@@ -1178,6 +1178,12 @@ void __fastcall UseSystemSettingsPre(TCustomForm * Control)
     Control->HelpKeyword = L"start";
   }
 
+  // We have legacy XE6 font (Tahoma) explicitly set in DFMs to match the layout.
+  // That unlinks the font fonts from the Application->DefaultFont. We set the DefaultFont to Tahoma in WinSCP.cpp.
+  // So we can link the form's font back to it now.
+  DebugAssert(SameFont(Control->Font, Application->DefaultFont));
+  Control->ParentFont = true;
+
   ApplySystemSettingsOnControl(Control);
 };
 //---------------------------------------------------------------------------
@@ -1211,7 +1217,7 @@ static void FlipAnchors(TControl * Control)
 }
 //---------------------------------------------------------------------------
 // Settings that must be set only after whole form is constructed
-void __fastcall UseSystemSettingsPost(TCustomForm * Control)
+void __fastcall UseSystemSettingsPost(TForm * Control)
 {
   // When showing an early error message
   if (WinConfiguration != NULL)
@@ -1229,13 +1235,13 @@ void __fastcall UseSystemSettingsPost(TCustomForm * Control)
   ResetSystemSettings(Control);
 };
 //---------------------------------------------------------------------------
-void __fastcall UseSystemSettings(TCustomForm * Control)
+void __fastcall UseSystemSettings(TForm * Control)
 {
   UseSystemSettingsPre(Control);
   UseSystemSettingsPost(Control);
 };
 //---------------------------------------------------------------------------
-void __fastcall ResetSystemSettings(TCustomForm * /*Control*/)
+void __fastcall ResetSystemSettings(TForm * /*Control*/)
 {
   // noop
 }

+ 5 - 5
source/windows/VCLCommon.h

@@ -20,11 +20,11 @@ int CalculateCheckBoxWidth(TControl * Control, const UnicodeString & Caption);
 void AutoSizeCheckBox(TCheckBox * CheckBox);
 void __fastcall InitializeSystemSettings();
 void __fastcall FinalizeSystemSettings();
-void __fastcall LocalSystemSettings(TCustomForm * Control);
-void __fastcall UseSystemSettingsPre(TCustomForm * Control);
-void __fastcall UseSystemSettingsPost(TCustomForm * Control);
-void __fastcall UseSystemSettings(TCustomForm * Control);
-void __fastcall ResetSystemSettings(TCustomForm * Control);
+void __fastcall LocalSystemSettings(TForm * Control);
+void __fastcall UseSystemSettingsPre(TForm * Control);
+void __fastcall UseSystemSettingsPost(TForm * Control);
+void __fastcall UseSystemSettings(TForm * Control);
+void __fastcall ResetSystemSettings(TForm * Control);
 void __fastcall LinkLabel(TStaticText * StaticText, UnicodeString Url = L"",
   TNotifyEvent OnEnter = NULL);
 void __fastcall LinkActionLabel(TStaticText * StaticText);