wkhtmltopdf / wkhtmltopdf

Convert HTML to PDF using Webkit (QtWebKit)
https://wkhtmltopdf.org
GNU Lesser General Public License v3.0
13.86k stars 1.8k forks source link

Disable font ligatures #3431

Open mcordoba opened 7 years ago

mcordoba commented 7 years ago

Hello,

Is it possible to disable font ligatures?

I have tried using:

font-variant-ligatures: none; font-variant-ligatures: "liga" off; -webkit-font-variant-ligatures: none; -webkit-font-variant-ligatures: "liga" off;

and much more with no luck. Any idea?

Thank you in advance

PhilterPaper commented 7 years ago

You've checked your CSS that font-variant-ligatures: none; is applying over a wide enough scope (e.g., not just in a <span>)? You don't have any other CSS that's overriding it and forcing ligatures to be used?

I think font-variant-ligatures is a fairly recent addition to CSS, and as such, I wouldn't be surprised if support for it has not yet been added to WebKit.

mcordoba commented 7 years ago

First of all, thank you for the reply.

I was applying the property to the body. I don't have any other property overriding it.

I agree that the answer is that it is not supported yet.

Anyway, I ended up modifying the font and removed the ligatures using fontforge.