将 libfontconfig.so 指向其较新版本
我正在尝试使用 wkhtmltopdf 将带有 @font-face 自定义字体的网页转换为 pdf。当尝试进行该转换时,该软件给了我以下错误(当不使用@font-face时,它可以正常工作):
wkhtmltopdf-i386:未定义的符号: FcFreeTypeQueryFace
我在互联网上发现了其他人也有同样的问题,显然他这样做解决了问题:
知道问题出在 libfontconfig,我开始更新 它。我下载了源码 版本 2.4.2(只需要 FcFreeTypeQueryFace 调用)来自 http://fontconfig.org/release/。
我做到了 ./configure 和 make,以及文件 libfontconfig.so.1.2.0 创建于 src/.libs/。
我将此文件复制到 /usr/lib/ 并指向现有的 libfontconfig.so 文件复制到新的文件中。
来源:http://code.google.com/ p/wkhtmltopdf/issues/detail?id=352&q=FCfreetypequeryface
到目前为止,我已经能够执行 ./configure 并从 src/.libs/ 获取正确的文件。现在我一直试图将现有的 libfontconfig.so 文件指向新文件,如果能提供一些帮助,我们将不胜感激。
I am trying to convert a webpage with @font-face custom fonts to a pdf using wkhtmltopdf. The software gives me the following error when trying to do that conversion (when not using @font-face it works perfectly):
wkhtmltopdf-i386: undefined symbol:
FcFreeTypeQueryFace
I've found someone else with the same issue on the internet and apparently he fixed the problem doing this:
Knowing that the problem was with
libfontconfig, I went about updating
it. I downloaded the source for
version 2.4.2 (only needed the
FcFreeTypeQueryFace call) from
http://fontconfig.org/release/.I did
a ./configure and make, and the file
libfontconfig.so.1.2.0 was created in
src/.libs/.I copied this file to /usr/lib/ and pointed the existing
libfontconfig.so files to the new one.
Source: http://code.google.com/p/wkhtmltopdf/issues/detail?id=352&q=FCfreetypequeryface
So far I've been able to do the ./configure and get the proper file from src/.libs/. Now I'm stuck on trying to point the existing libfontconfig.so files to the new one, some help with that would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对我来说,最终将旧的 libfontconfig.so 重命名为 libfontconfig.so.bak,然后将我构建的新文件重命名为 libfontconfig.so。这可能不是最好的方法,但它对我有用,无需链接或更改各种配置。
For me it ended up working renaming the old libfontconfig.so to libfontconfig.so.bak, then renaming the new file I'd built to libfontconfig.so. This might not be the best way to do it but it worked for me without linking or changing all kinds of configuration.