OSError: cannot open resource

  

问题分析:
 self.font = core.getfont(font, size, index, encoding, layout_engine=layout_engine)
OSError:无法打开资源,
三个原因
T1、加载的字体文件路径不对!,很有可能是加载的文件名字过长,文件名过长也不行的!
T2、加载的字体文件有问题!
T3、加载的字体文件路径出现中文

  

解决问题:
一、修改路径
二、字体缺失,从网上下载对应字体,放到指定文件夹
三、中文修改成拼音或者字母

  

相关文章:

  • 2021-07-14
  • 2021-08-11
  • 2022-12-23
  • 2021-08-20
  • 2021-07-02
  • 2021-07-09
  • 2021-08-24
  • 2021-04-24
猜你喜欢
  • 2022-01-11
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-06-06
  • 2021-12-04
相关资源
相似解决方案