Text's Stroke and Fill displaced in pdf export if using missing font face.
Migrated from https://bugs.launchpad.net/inkscape/+bug/940158
Steps to reproduce:
- Install Sacremento font or other font with no Bold style provided
- Open Inkscape
- Type some text
- Change font family to Sacremento
- Set font face/style to Bold (need to type it into the Text toolbar, or highlight all the text and hit Ctrl+B)
- Save file to pdf.
What happened?
- The bold text is given a faux bold appearance (In the svg, Inkscape just displays the text in Sacramento Regular)
- The fill and stroke of the bold text don't match up
What should have happened?
- Similar behaviour to export of font in italics, where the italics font face isn't installed
- regular form/fallback is displayed instead
- fill and stroke line up
- Ideally faux bold text is exported, but that's out of scope (and we don't display faux bold in Inkscape, though we do display faux italics)
- simply displayed the regular font face will do
Example files: sacramento_reg_it_bold.svg sacramento_reg_it_bold.pdf
From launchpad issue (uses 20th Century Font), outline_text_demo.svg outline_text_demo.pdf
Note: in launchpad issue (and example file), fill did not have a faux-bold applied, but currently (i.e. in 1.1-dev export), that is not true anymore.
Version Info:
- Inkscape 0.48.2 Ubuntu 11.10 and Fedora F16
- Inkscape 1.1-dev (9cade05c55, 2020-10-20)