File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -504,8 +504,12 @@ procedure TfrmPreferences.FormCreate(Sender: TObject);
504504 InitLanguages;
505505 comboAppLanguage.Items.AddStrings(FLanguages);
506506
507- comboGUIFont.Items.Assign(Screen.Fonts);
508- comboGUIFont.Items.Insert(0 , ' <' +_(' Default system font' )+' >' );
507+ comboGUIFont.Items.Clear;
508+ comboGUIFont.Items.Add(' <' +_(' Default system font' )+' >' );
509+ for i:=0 to Screen.Fonts.Count-1 do begin
510+ if not Screen.Fonts[i].StartsWith(' @' ) then
511+ comboGUIFont.Items.Add(Screen.Fonts[i]);
512+ end ;
509513
510514 { $IFDEF WINDOWS}
511515 comboTheme.Items.Add(_(' Automatic, depending on system settings' ));
@@ -669,7 +673,11 @@ procedure TfrmPreferences.FormShow(Sender: TObject);
669673 comboSQLColElementChange(Sender);
670674
671675 // Grid formatting:
672- comboDataFontName.Items := Screen.Fonts;
676+ comboDataFontName.Items.Clear;
677+ for i:=0 to Screen.Fonts.Count-1 do begin
678+ if not Screen.Fonts[i].StartsWith(' @' ) then
679+ comboDataFontName.Items.Add(Screen.Fonts[i]);
680+ end ;
673681 comboDataFontName.ItemIndex := comboDataFontName.Items.IndexOf(AppSettings.ReadString(asDataFontName));
674682 spinDataFontSize.Value := AppSettings.ReadInt(asDataFontSize);
675683 spinMaxQueryResults.Value := AppSettings.ReadINt(asMaxQueryResults);
You can’t perform that action at this time.
0 commit comments