0
我试图导入字体文件是这样的:错误/ pygame的
BASICFONT = pygame.font.Font('/home/user/pygame/lib/freesansbold.ttf', 18)
但后来我得到这个错误:
OSError: unable to read font file '/home/user/pygame/lib/freesansbold.ttf'
是什么这里错了吗?
你检查了权限吗? –
我该如何检查他们? – svs
ls -l检查是否具有读取权限。 'r'表示读取权限 –