Finding System Fonts with Delphi

后端 未结 3 1594
旧巷少年郎
旧巷少年郎 2021-02-09 17:07

What is the best way to find all the system fonts a user has available so they can be displayed in a dropdown selection box?

I would also like to distinguish between Un

3条回答
  •  耶瑟儿~
    2021-02-09 17:27

    I can answer half your question, you can get a list of the Fonts that your current environment has access to as a string list from the global Screen object

    i.e.

    Listbox1.Items.AddStrings(Screen.Fonts);
    

提交回复
热议问题