FreeType字体路径Windows
FreeType font path Windows
我正在与Windows和FreeType2作斗争。我正在遵循教程,下面显示为示例代码:
FT_Library library; /* handle to library */
FT_Face face; /* handle to face object */
error = FT_Init_FreeType( &library );
if ( error ) { ... }
error = FT_New_Face(library, "/usr/share/fonts/truetype/arial.ttf", 0, &face ); // <-- this does not exist...
if ( error == FT_Err_Unknown_File_Format )
{
... the font file could be opened and read, but it appears
... that its font format is unsupported
}
else if ( error )
{
... another error code means that the font file could not
... be opened or read, or simply that it is broken...
}
这个/usr/share/fonts/truetype/arial.ttf
根本不存在,我怎么能用Arial字体来处理它呢。
它因系统而异。检查FOLDRID_Fonts。
相关文章:
- Windows 非 ASCII 文件路径
- Windows 和 Linux 之间的相对路径分辨率差异?
- 我应该如何获取配置文件的绝对路径与 Windows .exe一起发布?
- 将带斜杠的 Unix 路径转换为 Windows 路径
- 在 Windows 10 下为 VTK 生成 Makefile 时,Qt mkspecs 的路径错误
- Windows上的libtool需要绝对路径,而我已经给了它绝对路径
- 为什么我不能将 Windows 环境路径与 ofstream 一起使用来编写文本文件?
- 找不到 windows.winmd – 如果指定了路径,错误会乘以
- 在 Windows 上,stat 和 GetFileAttributes 对于包含奇怪字符的路径失败
- 在Windows上设置编译器路径
- 从句柄获取Windows Explorer路径
- 如何正确设置Windows路径以通过CMAKE轻松识别
- C Windows-如何从其PID(错误)获取过程路径
- C 检索可执行文件的图标,用于Windows注册表图标路径
- 在 Windows 中加载共享库时在特定路径中选取 dll
- 在Windows上,何时有必要将附加到目录路径上,以使_stat成功
- 如何从Windows中的可执行文件中推断出文件/目录路径
- Windows路径处理库
- 如何使用Qt/C++获取Windows路径
- 将编译器添加到windows路径时出现问题