新的Graphite安装不会渲染graphics中的字体(除了Courier)

我一直在研究这个问题,现在几天没有成功…

我使用CentOS 6.5服务器上的Puppet Graphite模块configuration和部署了Graphite(使用碳和耳语)。 如果我selectCourier作为字体,Web应用程序将只显示graphics中的文本。

我知道Graphite使用cairo来渲染PNG图,并且依赖于freetype或fontconfig库。 所有这些都安装。

其他人已经通过安装“位图字体”软件包解决了这个问题。 安装在我的服务器上的软件包是“bitmaps-fonts-compat”,人们希望它与“位图字体”兼容。

在RedHat回购协议中提供的开罗版本是1.8(几个修订版本)。

我有同样的问题。 要解决这个问题, graphite/render/glyph.py在我的服务器的graphite/render/glyph.py fontnameSans更改为LucidaTypewriter (或任何其他来自fc-list)的完整path: /usr/lib/python2.6/site-packages/graphite/render/glyph.py

DIFF:

 64c64 < fontname='LucidaTypewriter', --- > fontname='Sans', 

并重新启动wsgi服务器。

我在Fedora 21上遇到了类似的问题,并通过安装dejavu-sans-fontsdejavu-serif-fonts (没有bitmaps-fonts-compat )来修复它。