Ask Your Question
1

Garbled text when opening PDFs in draw? [closed]

asked 2014-08-28 14:40:54 +0200

MikeV gravatar image

updated 2014-08-29 15:49:04 +0200

Hi,

I'm sorry if this belongs in the "bug" area instead of the general question area. This just started happening today - everything was working fine yesterday. I attempt to open a PDF in draw and the text appears super garbled, not just disorganized, but instead of the word "potato" the text reads "8%Jf1P&" or something like that. This only appears to happen in certain fonts.

The font in question is "cafeteria" (example here). When I first installed libreoffice, I did not have cafeteria installed on my computer. When I attempted to open a PDF containing that font, libreoffice chose a replacement font. Then, I installed cafeteria, and the files opened just fine, with the text appearing as it should. But now, a day later, even with cafeteria installed, I'm getting this garbled text. I've tried uninstalling the font, reinstalling the font, and reinstalling libreoffice. No dice.

Any time the font appears messed up, it's supposed to be the cafeteria typeface. Please let me know if there's anything I can do, or if this should be moved to the "bugs" section.

I've edited this post to include a screenshot. To clarify, the PDF on the right is the one I opened in draw. The image on the left is the way it appeared during editing, and also how it appeared when I saved it as a new PDF.C:\fakepath\Garbled image.png

I believe the type of font is OTF - at least that's how it appears when I examine the font properties in my fonts system folder.

Thanks!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-03-03 10:34:25.334510

Comments

1

Please edit the question to include a screenshot (you should have enough karma now). Also indicate (exactly) what a particular piece of text does display and what is it expected to display. If you can indicate the packaging (Type1, TTF, OTF) of the font that may also help. Thanks.

oweng gravatar imageoweng ( 2014-08-29 03:31:57 +0200 )edit

I have edited my original post - thanks for your help!

MikeV gravatar imageMikeV ( 2014-08-29 15:50:27 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2014-08-30 06:17:26 +0200

oweng gravatar image

Thanks for providing a screenshot. The problem is one of font substitution. There appears to be a copy of the original editable document here. Examining that document, the pieces of text that are not displaying correctly, indicates that they are set in Trebushet MS (title) and Arial (list items). It may be that a subset of the Caffeteria font is embedded in the PDF, but Draw cannot make use of embedded font subsets (related enhancement request to get this functionality is fdo#82163).

My guess about what is likely happening is that the Caffeteria font is using non-standard ranges / code-points for characters, but I would need to examine the font to confirm this. If this is the case, when font substitution occurs, the character in the font being used instead of Caffeteria is not the same one e.g., "C" instead of "L". You could try manually creating a font substitution entry (Tools > Options... > LibreOffice > Fonts) but this will be of no assistance if the Caffeteria font is non-standard in the manner described.

edit flag offensive delete link more

Comments

Thanks for your answer. Is there any way to explain why I could initially open files without any problems (even the very same file that I included the screenshot of) and then all of a sudden everything stopped working? Is there anything I can do, or are you basically saying that I can't open these files with LibreOffice?

MikeV gravatar imageMikeV ( 2014-08-30 22:32:43 +0200 )edit

@MikeV a link to the PDF will help more clearly determine what the exact problem is and what can be done about it (if anything).

oweng gravatar imageoweng ( 2014-08-31 02:18:20 +0200 )edit

@oweng Here's a link to the file. Please let me know if there is anything else I can do. https://docs.google.com/file/d/0B8H8K...

MikeV gravatar imageMikeV ( 2014-08-31 05:27:06 +0200 )edit

The header/footer areas appear to use the CaffeteriaIdentityH font and the list items the StoneSansIdentityH font. Note the non-standard font naming. Unless you have these unusually named fonts installed, the rendering will be according to font substitution.

oweng gravatar imageoweng ( 2014-09-01 08:14:32 +0200 )edit

@oweng I have used font editors and confirmed that the ranges/code-points are all mapped normally for the Cafeteria font. I am not sure why LibreOffice thinks there's a font called CafeteriaIdentityH. In the past, I have opened these very same files using Adobe Acrobat Pro and the font is simply called Cafeteria.

At this point, I don't care whether or not the document loads with the Cafeteria font or some replacement font. Is there any way to make that happen?

MikeV gravatar imageMikeV ( 2014-09-01 17:07:12 +0200 )edit

Question Tools

1 follower

Stats

Asked: 2014-08-28 14:40:54 +0200

Seen: 2,786 times

Last updated: Aug 30 '14