Point libfontconfig.so for a newer version

I am trying to convert a web page with @ font-face fonts to pdf using wkhtmltopdf. The software gives me the following error when trying to do this conversion (when you do not use @ font-face, it works fine):

wkhtmltopdf-i386: undefined character: FcFreeTypeQueryFace

I found someone else with the same problem on the Internet and apparently he fixed the problem:

Knowing that the problem is related to libfontconfig, I went to update This. I downloaded the source for version 2.4.2 (only FcFreeTypeQueryFace is required) from http://fontconfig.org/release/ .

I did a./configure and make, and the libfontconfig.so.1.2.0 file was created in SRC / .libs /.

I copied this file to / usr / lib / and pointed to the existing libfontconfig.so to the new one.

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

So far, I have been able to fulfill. / configure and get the desired file from src / .libs /. Now I'm stuck trying to point existing libfontconfig.so files to a new one, some of them will be appreciated.

+3
source share
1 answer

For me, this led to renaming the old libfontconfig.so to libfontconfig.so.bak, and then renaming the new file that I created for libfontconfig.so. This may not be the best way to do this, but it worked for me without binding or changing all kinds of configuration.

0
source

Source: https://habr.com/ru/post/1791948/


All Articles