M
M
monochromer2016-11-29 11:12:45
linux
monochromer, 2016-11-29 11:12:45

How to fix font rendering for pdf made with phantomjs on linux?

On linux server (Debian) generate pdf from html using phantomjs. Extra indents appear between letters
8acd22315f1f4346a52431ee6d2ea1c2.png
Custom font - Open Sans, loaded from Google Fonts:

link(rel="stylesheet", href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=cyrillic-ext")

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Adamos, 2016-11-29
@Adamos

What about font rendering? You either look at something unsuccessful (then there is nothing to edit), or the font is included incorrectly, or the Cyrillic text is incorrectly processed when generating pdf and empty characters climb into it.
First, try another reader, if it is the same in it - it's worth overtaking PDF to PS and see what actually happens in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question