Adobe Reader says: 'Cannot extract the embedded font'

Get help with FontCreator here. Please do not post feature requests or bug reports here.
Post Reply
Brother Gabriel-Marie
Posts: 280
Joined: Fri Aug 17, 2007 6:12 pm

Adobe Reader says: 'Cannot extract the embedded font'

Post by Brother Gabriel-Marie » Fri Mar 13, 2015 5:47 am

We figured this out!

So, I am using LaTeX to create a pdf using a particular font.
The pdf opens just fine.
But when I PLACE that pdf in InDesign and export it as a pdf, I get this error:
screenshot_Adobe Reader (Adobe Reader ) [AcroRd32]_022.png
adobe reader error
screenshot_Adobe Reader (Adobe Reader ) [AcroRd32]_022.png (10.31 KiB) Viewed 9598 times
I sent the font to a friend, and they adjusted the em space.
THIS FIXED IT!

Now, look here at the Font Properties.
The original font is on the left/top. The fixed one is on the right/bottom.
screenshot_FontCreator (FontCreator - Windows Font Editor)_003.png
original font specs
screenshot_FontCreator (FontCreator - Windows Font Editor)_003.png (24.42 KiB) Viewed 9598 times
screenshot_FontCreator (FontCreator - Windows Font Editor)_004.png
em-corrected font specs
screenshot_FontCreator (FontCreator - Windows Font Editor)_004.png (25.2 KiB) Viewed 9598 times
NOW - my question is: how can I make a fix like this in FontCreator?
I can't just change the values there in the Font Properties panel - If I adjust the units-per-em, it resizes every glyph in the entire font.

Here are the metrics:
Again, original on the left or top, fixed one on the right or bottom:
screenshot_FontCreator (FontCreator - Windows Font Editor)_006.png
original - metrics
screenshot_FontCreator (FontCreator - Windows Font Editor)_006.png (23.99 KiB) Viewed 9598 times
screenshot_FontCreator (FontCreator - Windows Font Editor)_005.png
corrected metrics
screenshot_FontCreator (FontCreator - Windows Font Editor)_005.png (23.3 KiB) Viewed 9598 times
What did they do?
How can I fix it myself to do the same thing?

Erwin Denissen
Moderator
Moderator
Posts: 8301
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Adobe Reader says: 'Cannot extract the embedded font'

Post by Erwin Denissen » Fri Mar 13, 2015 8:01 am

Brother Gabriel-Marie wrote:We figured this out!

So, I am using LaTeX to create a pdf using a particular font.
The pdf opens just fine.
But when I PLACE that pdf in InDesign and export it as a pdf, I get this error:
screenshot_Adobe Reader (Adobe Reader ) [AcroRd32]_022.png
I sent the font to a friend, and they adjusted the em space.
THIS FIXED IT!
I suspect there is a bug in LaTeX or InDesign or both, and your friend found a way around it.

For fonts with TrueType based outlines the value should be a power of 2. Nowadays 2048 units per em value is the best value for all fonts of any size including large Latin or non-Latin script fonts.

For fonts with CFF (Postscript) outlines the recommended value is 1000, but other values should work.

I don't think this is related, but a couple of months ago a posted this:
Mac OS X 10.10 (Yosemite) PDF Bug Affects OpenType CFF
Brother Gabriel-Marie wrote:What did they do?
How can I fix it myself to do the same thing?
The Glyph Transformer can help rescale your glyphs, but I would recommend the following:

Do follow these steps:
1) Select all glyphs in the overview window, and copy them to the clipboard (CTRL-C)
2) Then go to the Font Properties dialog, and change the units per em
3) Select the first glyph, and paste from the clipboard (CTRL-P)
4) Go back to the Font Properties dialog to adjust the metrics values. Most groups have a Calculate button.
Erwin Denissen
High-Logic
Proven Font Technology

Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 8381
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: Adobe Reader says: 'Cannot extract the embedded font'

Post by Bhikkhu Pesala » Fri Mar 13, 2015 8:22 am

A refinement to Erwin's suggestion.
  1. Select only the simple glyphs
  2. Copy them to the clipboard, leaving them selected
  3. Change the units per em
  4. Paste the clipboard contents back into the same glyphs
  5. Recalculate the metrics in Font Properties. The Maximum value is more appropriate than the Default value as far as I know. (I don't understand why the Default radio box is enabled by default, or even why it is needed).
  6. Make sure that the Export Settings are set on Autohinting or None, not Keep Original. The original hinting will not longer be correct for the new funit/em value
Select Simple.png
Select Simple.png (107.31 KiB) Viewed 9594 times
My FontsReviews: MainTypeFont CreatorHelpFC12 Pro + MT9.0 @ Win10 1903 build 18362.418

Erwin Denissen
Moderator
Moderator
Posts: 8301
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Adobe Reader says: 'Cannot extract the embedded font'

Post by Erwin Denissen » Fri Mar 13, 2015 8:45 am

Bhikkhu Pesala wrote:A refinement to Erwin's suggestion.
It is good to know how others would do it :D
Bhikkhu Pesala wrote:1. Select only the simple glyphs
2. Copy them to the clipboard, leaving them selected
3. Change the units per em
4. Paste the clipboard contents back into the same glyphs
I'm not sure if the glyph component positions will remain correct, but this might work as well.
Bhikkhu Pesala wrote:5. Recalculate the metrics in Font Properties. The Maximum value is more appropriate than the Default value as far as I know. (I don't understand why the Default radio box is enabled by default, or even why it is needed).
I also always use Maximum, so maybe that should become the one that is selected by default :wink:
Bhikkhu Pesala wrote:6. Make sure that the Export Settings are set on Autohinting or None, not Keep Original. The original hinting will not longer be correct for the new funit/em value
Almost correct:
I think it is wise to set the hinting to Auto Hinting, as the original hinting will be lost after making changes to a glyph's outline.
Erwin Denissen
High-Logic
Proven Font Technology

Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 8381
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: Adobe Reader says: 'Cannot extract the embedded font'

Post by Bhikkhu Pesala » Fri Mar 13, 2015 11:36 am

Erwin Denissen wrote:I'm not sure if the glyph component positions will remain correct, but this might work as well.
We should add a few more steps to fix the composites:
  1. Select all composites
  2. Tag them as ToDo
  3. Select all ToDo glyphs
  4. Make Simple
  5. Complete Composites
The original hinting is not lost by the copy/paste action, but it is no longer correct. If export is done without hinting or autohinting the hinting will be removed or replaced. Otherwise not.
My FontsReviews: MainTypeFont CreatorHelpFC12 Pro + MT9.0 @ Win10 1903 build 18362.418

Brother Gabriel-Marie
Posts: 280
Joined: Fri Aug 17, 2007 6:12 pm

Re: Adobe Reader says: 'Cannot extract the embedded font'

Post by Brother Gabriel-Marie » Fri Mar 13, 2015 2:44 pm

Okay, the cut and paste trick worked well for resizing the em spacing. The general and metrics settings look about the same now in my font as they do in the one my friend edited in FontForge.

However, my font still won't embed properly - it keeps giving the error.
But my friend's font works just fine.

Can I send someone the two fonts to inspect?
I simply cannot discover the difference.

Erwin Denissen
Moderator
Moderator
Posts: 8301
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Adobe Reader says: 'Cannot extract the embedded font'

Post by Erwin Denissen » Fri Mar 13, 2015 3:01 pm

Sure, do send them over to me. You know my email address, otherwise send me a pm.
Erwin Denissen
High-Logic
Proven Font Technology

Dick Pape
Top Typographer
Top Typographer
Posts: 1360
Joined: Wed Oct 01, 2003 1:19 pm
Location: North Dallas, Texas

Re: Adobe Reader says: 'Cannot extract the embedded font'

Post by Dick Pape » Fri Mar 13, 2015 8:03 pm

It has been my experience, long time fonters consider 2048 wrong and only allow 1000 and only accept otf extension.

Brother Gabriel-Marie
Posts: 280
Joined: Fri Aug 17, 2007 6:12 pm

Resolved: Adobe Reader says: 'Cannot extract the embedded font'

Post by Brother Gabriel-Marie » Sat Mar 14, 2015 3:37 am

Okay, well, I finally fixed the font (thank you, Mr. Denissen, for your help).
I did change the em-size to 1000 using the procedures you all posted above.

But what really fixed the problem was exporting the font with CFF outlines instead of TrueType outlines.

Erwin Denissen
Moderator
Moderator
Posts: 8301
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Adobe Reader says: 'Cannot extract the embedded font'

Post by Erwin Denissen » Sat Mar 14, 2015 5:58 am

I still think the process that makes the PDF is the problem, but I don't know anything about Latex.
Erwin Denissen
High-Logic
Proven Font Technology

Post Reply