我有些困惑设置字符大小对象的字符宽度和高度字段(例如在FreeType教程中描述的示例)。
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 是否足够?