File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -533,8 +533,12 @@ procedure TfrmPreferences.FormCreate(Sender: TObject);
533533 InitLanguages;
534534 comboAppLanguage.Items.AddStrings(FLanguages);
535535
536- comboGUIFont.Items.Assign(Screen.Fonts);
537- comboGUIFont.Items.Insert(0 , ' <' +_(' Default system font' )+' >' );
536+ comboGUIFont.Items.Clear;
537+ comboGUIFont.Items.Add(' <' +_(' Default system font' )+' >' );
538+ for i:=0 to Screen.Fonts.Count-1 do begin
539+ if not Screen.Fonts[i].StartsWith(' @' ) then
540+ comboGUIFont.Items.Add(Screen.Fonts[i]);
541+ end ;
538542
539543 Styles := TStyleManager.StyleNames;
540544 for i:=Low(Styles) to High(Styles) do begin
@@ -764,7 +768,11 @@ procedure TfrmPreferences.FormShow(Sender: TObject);
764768 comboSQLColElementChange(Sender);
765769
766770 // Grid formatting:
767- comboDataFontName.Items := Screen.Fonts;
771+ comboDataFontName.Items.Clear;
772+ for i:=0 to Screen.Fonts.Count-1 do begin
773+ if not Screen.Fonts[i].StartsWith(' @' ) then
774+ comboDataFontName.Items.Add(Screen.Fonts[i]);
775+ end ;
768776 comboDataFontName.ItemIndex := comboDataFontName.Items.IndexOf(AppSettings.ReadString(asDataFontName));
769777 updownDataFontSize.Position := AppSettings.ReadInt(asDataFontSize);
770778 updownMaxQueryResults.Position := AppSettings.ReadINt(asMaxQueryResults);
You can’t perform that action at this time.
0 commit comments