I am wondering why TFontDialog gives fewer fonts than Screen.Fonts? (For example, Arial * font, Comic font, etc. Does not appear in TFontDialog)
It also seems that the font list given by TFontDialog is the same as WordPad, while the font list given by Screen.Fonts is basically the same as Word.
Thanks so much for your ideas!
PS: Delphi XE, Windows 7
PS: SO related topics:
- Too many fonts to enumerate using the EnumFontFamiliesEx function
- Finding system fonts with Delphi
- How to use external fonts?
PS: linked web pages:

unit Unit2; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm2 = class(TForm) lst1: TListBox; dlgFont1: TFontDialog; Button1: TButton; procedure Button1Click(Sender: TObject); procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form2: TForm2; implementation {$R *.dfm} procedure TForm2.FormCreate(Sender: TObject); begin lst1.Items.AddStrings(Screen.Fonts); end; procedure TForm2.Button1Click(Sender: TObject); begin dlgFont1.Device := fdBoth; if dlgFont1.Execute then begin end; end; end.
windows fonts delphi wordpad
SOUser Jul 02 2018-12-12T00: 00Z
source share