我的 Win32 应用程序必须从 ProgramFiles 文件夹加载自定义字体文件。 是否可以从自定义位置加载自定义字体文件? 如果是这样,我如何加载自定义字体文件?
请提出建议。
谢谢
最佳答案
使用AddFontResource或AddFontResourceEx
注意:
When an application no longer needs a font resource that it loaded by calling the AddFontResource function, it must remove that resource by calling the RemoveFontResource function. This function installs the font only for the current session. When the system restarts, the font will not be present. To have the font installed even after restarting the system, the font must be listed in the registry.
关于c++ - 从应用程序特定文件夹加载自定义字体文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20568167/