|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 cjjJasonchen 于 2023-8-25 13:10 编辑
【pygame】支持中文的pygame系统字体
arialms
fzshuti
fzyaoti
lisu
malgungothic
microsoftjhengheimicrosoftjhengheiui
microsoftjhengheimicrosoftjhengheiuibold
microsoftjhengheimicrosoftjhengheiuilight
microsoftyaheimicrosoftyaheiui
microsoftyaheimicrosoftyaheiuibold
microsoftyaheimicrosoftyaheiuilight
msgothicmsuigothicmspgothic
simsunnsimsun
stcaiyun
stfangsong
sthupo
stkaiti
stliti
stsong
stxihei
stxingkai
stxinwei
stzhongsong
youyuan
yugothicmediumyugothicuiregular
yugothicregularyugothicuisemilight
yugothicyugothicuilight
yugothicyugothicuisemiboldyugothicuibold
以上的就是pygame中的支持中文的系统字体的名称啦,是我网上找的,分享给大家,就不求评分了
举个例子:
- font = "stsong"
- font = pygame.font.SysFont(font, 190)
复制代码
这样就可以设置字体为“宋体”
最后再提一句,现在正在制作的pygameGUI2.0 将会支持 系统字体!
关注实时更新:pygame 2.0 更新日志 |
评分
-
查看全部评分
|