在文件 text.txt 我有这个句子:
“Příliš žluťoučký kůň úpěl ďábelské ódy。”
(我认为 Windows 使用 Windows-1250 代码页来表示此文本。)
在我的程序中,我将其保存到缓冲区
char string[1000]
并将带有 ttf 的字符串渲染到 SDL_Surface *surface
surface = TTF_RenderText_Blended(font, string, color);
/*(font is true type and support this text)*/
但它给了我不正确的结果:
我需要一些声誉点来发布图像,所以我只能描述 ř,í,š,ž,ť,ů,ň,ď 没有正确显示。
是否可以使用 ttf 正确渲染这句话?
(我也试过 TTF_RenderUTF8_Blended、TTF_RenderUNICODE_Solid ......结果更糟。)