Install font in firemonkey

前端 未结 2 1075
予麋鹿
予麋鹿 2021-01-26 00:38

How Can I use embedded font or install new fonts in my firemonkey application?

I tried this solution but WM_FONTCHANGE is not defined in FMX!

I want

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-26 01:19

    You can surely use the Winapi.Messages unit in your FMX app which is clearly targeting Windows, and the message constant is defined there.

    If you don't want to use Winapi.Messages, just define the constant in your own code:

    const
      WM_FONTCHANGE = $001D;
    

提交回复
热议问题