03-24-2021, 09:04 AM
(This post was last modified: 03-24-2021, 11:09 AM by rich2005.
Edit Reason: edit
)
Gimp PDF export is 'improved' in Gimp 2.10. Text layers are embedded in the PDF with the font properties. Unfortunately this is broken and the font metrics are not included in the PDF file. There is a bug report about this but seems a problem the developers have no control over.
When the Gimp PDF is opened in another computer or application where the font is not installed/available then a replacement (default) font is used eg. Sans.
The way to avoid this is flatten the text layer - remove text properties - before exporting as a PDF. Previous versions of Gimp did this automatically. It does mean that the text, now a bitmap, can look 'not-as-good' as correctly embedded text.
What you can do
Install the missing font
Ask the sender (or yourself) to flatten the text layers before exporting as a PDF
Ask the sender (or yourself) to export as a png or jpeg where the image is automatically flattened to a single layer.
If you open a Gimp xcf with a missing font, it looks correct providing you do not try and edit the text layer in any way. Then the missing font is replaced with the default font. (edit: You can still duplicate that layer and flatten the duplicated layerand hide the text layer thought that worked but it does not. https://gitlab.gnome.org/GNOME/gimp/-/issues/5938 A fix promised with Gimp 2.10.24 Gimp PDF export really is terrible)
If you really need the text with the metrics embedded then Inkscape v1 does this. Make the graphic in Gimp. Add text and export to PDF using Inkscape.
When the Gimp PDF is opened in another computer or application where the font is not installed/available then a replacement (default) font is used eg. Sans.
The way to avoid this is flatten the text layer - remove text properties - before exporting as a PDF. Previous versions of Gimp did this automatically. It does mean that the text, now a bitmap, can look 'not-as-good' as correctly embedded text.
What you can do
Install the missing font
Ask the sender (or yourself) to flatten the text layers before exporting as a PDF
Ask the sender (or yourself) to export as a png or jpeg where the image is automatically flattened to a single layer.
If you open a Gimp xcf with a missing font, it looks correct providing you do not try and edit the text layer in any way. Then the missing font is replaced with the default font. (edit: You can still duplicate that layer and flatten the duplicated layer
If you really need the text with the metrics embedded then Inkscape v1 does this. Make the graphic in Gimp. Add text and export to PDF using Inkscape.