开发者

SDL_TTF system font

开发者 https://www.devze.com 2023-03-02 04:51 出处:网络
Is there any way to use the default system font with SDL_TFF, without writing platform-speci开发者_开发问答fic code? Currently I just use one of the GNU FreeFont\'s, but I would like to be able to use

Is there any way to use the default system font with SDL_TFF, without writing platform-speci开发者_开发问答fic code? Currently I just use one of the GNU FreeFont's, but I would like to be able to use the default system font.


Well, what is "default system font"? I think all modern OSes allow users to customise fonts, so you need to query it somehow, if you want to use exactly that. If you don't want to write platform-specific code and want to avoid non-portable assumptions, then providing your own fonts is a correct thing to do.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号