I'm having a strange issue when trying to copy text from a generated PDF. Following are the steps,
fi
, or ffi
is not selectingI'm using
wicked_pdf
gemwkhtmltopdf
ver 0.12Below is what is happening when I do a select all.
The reason might be due to having text-rendering
set to optimizeLegibility
in your css file.
Remove this line:
text-rendering: optimizeLegibility;
and you should be gold :)
Reference from Mozilla:
"One very visible effect is optimizeLegibility, which enables ligatures (ff, fi, fl etc.) in text smaller than 20px for some fonts (for example, Microsoft's Calibri, Candara, Constantia and Corbel or the DejaVu font family)."
Note that I had the same problem with the Noto font and optimizeLegibility
definitely affects it.