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'表示讀取權限 –