全部!我正在编写一个可以在 Google App Engine 上运行的应用程序。我正在使用 ReportLab 生成 PDF 文件。但是,应用程序需要能够生成带有西里尔文本的 PDF。所以我需要加载一些 True Type 字体。我应该写这样的东西
pdfmetrics.registerFont(TTFont('Verdana', 'verdana.ttf'))
我试图将“verdana.ttf”文件复制到 /reportlab/fonts
但registerFont
再次失败。但是在桌面环境中它工作正常。
如何从 GAE 上运行的应用程序加载 True Type 字体?
提前致谢