【问题标题】:C++ font path WindowsC++ 字体路径 Windows
【发布时间】:2014-10-26 19:29:31
【问题描述】:

如何在 Windows 中获取特定字体的路径。是否有特定的方法可以为所有 Windows 版本获取它们?还是所有操作系统都不同。

例子:

.../path/fonts/truetype/arial.ttf

【问题讨论】:

    标签: c++11 truetype


    【解决方案1】:

    选项 1:Get a font filepath from name and style in C++/Windows(SO;另请参阅其中的链接)。

    选项 2:There is an API for this,CSIDL 为 CSIDL_FONTS 或(对于 Vista 及更高版本)KNOWNFOLDERID 为 FOLDERID_Fonts。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-03-16
      • 2012-07-08
      • 2011-11-16
      • 2020-11-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多