首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >FreeType字体路径窗口

FreeType字体路径窗口
EN

Stack Overflow用户
提问于 2014-10-06 19:37:43
回答 1查看 1.5K关注 0票数 1

我正在为Windows和FreeType2而苦苦挣扎。我正在学习本教程,示例代码如下所示:

代码语言:javascript
复制
  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字体使用它呢?

EN

回答 1

Stack Overflow用户

发布于 2014-10-06 21:58:12

它随系统的不同而不同。检查FOLDERID_Fonts

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26215422

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档