gpt4 book ai didi

wkhtmltopdf - 将 libfontconfig.so 指向它的更新版本

转载 作者:行者123 更新时间:2023-12-03 19:45:16 27 4
gpt4 key购买 nike

我正在尝试使用 wkhtmltopdf 将带有 @font-face 自定义字体的网页转换为 pdf。该软件在尝试进行该转换时出现以下错误(当不使用 @font-face 时它工作得很好):

wkhtmltopdf-i386: undefined symbol:FcFreeTypeQueryFace

我在互联网上发现其他人也有同样的问题,显然他解决了这个问题:

Knowing that the problem was withlibfontconfig, I went about updatingit. I downloaded the source forversion 2.4.2 (only needed theFcFreeTypeQueryFace call) fromhttp://fontconfig.org/release/.

I dida ./configure and make, and the filelibfontconfig.so.1.2.0 was created insrc/.libs/.

I copied this file to /usr/lib/ and pointed the existinglibfontconfig.so files to the new one.

来源:http://code.google.com/p/wkhtmltopdf/issues/detail?id=352&q=FCfreetypequeryface

到目前为止,我已经能够执行 ./configure 并从 src/.libs/获取正确的文件。现在,我一直在尝试将现有的 libfontconfig.so 文件指向新的文件,我们将不胜感激。

最佳答案

对我来说,它最终将旧的 libfontconfig.so 重命名为 libfontconfig.so.bak,然后将我构建的新文件重命名为 libfontconfig.so。这可能不是最好的方法,但它对我有用,无需链接或更改各种配置。

关于wkhtmltopdf - 将 libfontconfig.so 指向它的更新版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4990691/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com