Ligatures for certain fonts appear as � (export to pdf then import)
Migrated from https://bugs.launchpad.net/inkscape/+bug/1027968 (because of how the report was written, I mostly copied and pasted)
Steps to reproduce:
- create a new document
- text tool, insert text such as ifuflff
- change font to an affected font (e.g. Fanwood Text)
- save document as PDF
- (document "displays" correctly using evince, xreader)
- open document using inkscape, with "replace fonts by closest" enabled
- observe Unicode replacement character instead of ligatures
Free fonts which lead to this problem:
- Charis SIL (in TTF, from package fonts-sil-charis)
- Fanwood Text (in OTF, from http://www.theleagueofmoveabletype.com/fanwood)
- Goudy Bookletter 1911 (in OTF, from package ttf-goudybookletter (sic))
A font which does not display the problem:
- Linux Libertine O (in OTF, from package fonts-linuxlibertine)
- Linux Libertine G
- DejaVu Sans
What happened?
Unicode replacement characters are inserted with some fonts. Note: copy and pasting from evince and xreader also produce the � when pasted into Inkscape, xed and Sublime Text (on Linux Mint 19.1).
In comparison, properly imported ligatures remain ligatures (and are pasted properly, as two separate characters)
Example files
pdftotext output of pdf files:
problem ifu�� <- Fanwood Text
fine ifuflff <- Linux Libertine G
When trying to use a pdf created in LibreOffice writer, I get the problem noted in #593 (closed) (dropped ligatures) instead
Inkscape Version and Operating System:
- Inkscape 1.1-dev (2c30fa0f, 2019-12-16) build Linux Mint 19.1
- Inkscape 1.0alpha (9dee831c, 2019-01-15) appimage Linux Mint 19.1
- 0.48.3.1-1+b1 Debian kernel 3.3.0-trunk-amd64, libcairo2 version 1.12.2-2, fonts-sil-charis version 4.106-5 (submitted 2012)
- Inkscape 0.48.3.1 and 0.48+devel r11563 on OS X 10.7.4 (using the X11 backend of GTK+ and Pango, normal fontconfig setup similar to linux)