【发布时间】:2017-04-01 03:28:26
【问题描述】:
我有点困惑设置字符大小对象的字符宽度和高度字段(示例来自FreeType tutorial 中描述的)
error = FT_Set_Char_Size(
face, /* handle to face object */
0, /* char_width in 1/64th of points */
16*64, /* char_height in 1/64th of points */
300, /* horizontal device resolution */
300 ); /* vertical device resolution */
为什么要指定 char_width 和 char_height?这不应该取决于实际的字形吗?例如字符“w”和“l”有不同的宽度和高度。
另外,由于我没有渲染到屏幕上(我计划将光栅字体数据用于其他一些深奥的目的),使用 FT_Set_Pixel_Sizes 是否足够?
【问题讨论】: