Skip to content

Commit 1814ee9

Browse files
committed
fix(ui): filter away vertical writing fonts with an @ prefix
Refs #2455
1 parent af68d11 commit 1814ee9

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

source/preferences.pas

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)