Why TFontDialog gives less fonts than Screen.Fonts?

前端 未结 2 881
终归单人心
终归单人心 2021-01-06 10:58

I am wondering why TFontDialog gives less fonts than Screen.Fonts? (For example, the Arial* font, the Comic font, etc, does not show in TFontDialog)

It also seems th

2条回答
  •  悲&欢浪女
    2021-01-06 11:32

    Different APIs, different results. Screen.Fonts uses EnumFontFamiliesEx(), which returns all installed fonts. TFontDialog uses ChooseFont() instead, which only displays the fonts that are compatible with the TFontDialog.Font and TFontDialog.Options properties.

提交回复
热议问题