Skip to content

Commit de9eeeb

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

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
@@ -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);

0 commit comments

Comments
 (0)