Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 SDL_ttf 并使用 TTF_RenderText_Blended 函数进行渲染。我使用 HelveticaNeueLight 字体。
与 Photoshop 中的文本相比,SDL 中呈现的文本看起来很难看,即使它是相同的字体:
显然,“M”、“t”、“y”和“c”看起来是错误的。如何使我的文字看起来可以接受?
我认为您应该尝试TTF_SetFontHinting。伴随着抗锯齿,它可以提供相当不错的效果。如果您不知道什么是字体提示,请参考这里的维基百科。