Jump to content
You must now use your email address to sign in [click for more info] ×

afpub: PDF export issue with font encoding


Recommended Posts

Hello,

if I export a file with text in a field (Arial Bold) as PDF the text is shown like character salad. If I use the Microsoft PDF printer or change the text to regular the exported PDF is showing correct.

What did I wrong - could anyone help me please?

Best regards,

Andreas

2019-07-12-afpub-textfeld-arial-bold-24pt.png

2019-07-12-afpub-textfeld-arial-bold-24pt-pdf.png

2019-07-12-afpub-textfeld-arial-regular-24pt.png

2019-07-12-afpub-textfeld-arial-bold-24pt-print-ms-pdf.png

test.afpub

Link to comment
Share on other sites

I exported the test file to PDF and it looks fine.

The character salad looks like font cache corruption.
Note how the Arial-BoldMT Encoding says "Custom" - mine says "Identity-H" like the others.
That could be another indication of font cache corruption.

Does the Arial-Bold look bad in other exported PDF documents?

Link to comment
Share on other sites

There are tutorials out there on clearing the Windows font cache.
If you are using a font manager it may also have its own font cache.
And APub has its own font cache - and I have not found a way to manually delete it.
Shutting-down APub and then installing/un-installing some fonts seems to trigger it to rebuild upon restarting APub.
That may work.

Did you test Arial-Bold export to PDF in another APub document?
It could be just the APub cache.
You may be able to narrow it down.

I would test Arial-Bold in Export to PDF from LibreOffice or other application.
If it works there it could just be the APub font cache.

Link to comment
Share on other sites

I'm using no extra font manager.

I cleared the Windows font cache - the same before.

After that I downloaded the Arial fonts from the Microsoft TrueType core fonts at Sourceforge, unzipped the archives and copied the .ttf files into the WINDOWS/Fonts directory. After restart the Publisher the exported PDF is showing well. I think the fonts were destroyed.

Thanks for your helping hints

Link to comment
Share on other sites

5 hours ago, AK_CCM said:

After that I downloaded the Arial fonts from the Microsoft TrueType core fonts at Sourceforge, unzipped the archives and copied the .ttf files into the WINDOWS/Fonts directory.

Ugh. Those fonts are really old. And bad.
Looks like you are on Windows 10.
I can send you the most current Win10  fonts via PM if you want.

Glad you got it working.

Link to comment
Share on other sites

Curious. I extractet the fonts directory from the install.wim of the installation iso. Then I copied the font files into the C:\WINDOWS\Fonts directory of my system. And the error is there again. Tomorrow I'll try to solve the error.

Update: I cleaned the font cache (services.msc contains no entry, so I had to stop the service with the command "net stop FontCache"). Then I added two .reg files to the Windows registry (please have a look to the quote below). After I restarted the computer all is working fine.

Quote

Windows 10/8.1 Default Font Archives

If you don’t have a Windows 10 (Windows 8.1) installation image, you can copy the directory with the original fonts from another computer running the same OS version or use ready font archives that can be downloaded from the links below:

Download and unzip the archive for your Windows version and copy its contents to the C:\Windows\Fonts folder with the replacement of the files.

Also download and apply (double click) the following reg files from the archive win10-default-fonts-reg.zip.

The first file (win_10_fonts.reg) contains a list of standard fonts registered in the registry (HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts).

The second file (win_10_FontSubstitutes.reg) contains font association settings (HKLM \SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes).

Restart your computer, the problem with the fonts should be gone!

Source: http://woshub.com/how-to-restore-default-fonts-in-windows-8-1/

I hope, that this solution could help any other Windows 10 users to solve their corrupted standard fonts.

Edited by AK_CCM
Update
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.