PDF export adds line break and hyphenation when XCF file has text in layers
Environment/Versions
- GIMP version: 2.10.22
- Package: gimp-2.10.22-4 (debian package)
- Operating System: Debian 11.6 (bullseye)
Can't test with a newer gimp, sorry. My setup is client/server X11 run over a lan, which, I believe is not supported until at least flatpak 1.14. I looked into building from source, but there are too many newer dependencies. And you don't seem to have a statically linked binary.
Description of the bug
Text in the original xcf, in a layer, is:
NARRATIVE
OF THE
LIFE
Text in the exported PDF is:
NARRATIV-
E
OF THE
LIFE
Note extra hyphen and newline.
To prevent the insertion of the hyphen and extra newline, flatten all layers before exporting.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Download xcf file from: https://upload.wikimedia.org/wikipedia/commons/5/5d/E-book_download_poster_NARRATIVE_OF_THE_LIFE_OF_FREDERICK_DOUGLASS%2C_GIMP_source.xcf
- Choose File->Export As...
- Change file name suffix to "pdf" and export.
Expected result:
Actual result:
Additional information
(per above) Flattening all layers before export produces the expected result
Note that exported PDF is US-Letter.