altmany / export_fig

A MATLAB toolbox for exporting publication quality figures
BSD 3-Clause "New" or "Revised" License
1.28k stars 368 forks source link

Italic embedded font in pdf #324

Closed henridc closed 3 years ago

henridc commented 4 years ago

By reading the comments in this thread, I managed to embed part of my fonts by checking the name under which they are embedded in a pdf file. This is the ouput from a pdf file created from Word, where the fonts are correctly embedded:

correct

In export_fig, I used GillSansNova-Medium and the regular version is correctly used and embedded. However, the italic part is included as GillSansNova-Medium-Italic, wheareas it should be GillSansNova-MediumItalic (without the dash before Italic):

export_fig

Would there be a way for export_fig to remove the dash before the "Italic"? I searched the code but did not find myself how to do it.

Thanks a lot in advance.

altmany commented 3 years ago

The latest version that was just uploaded includes a feature that allows users to replace any string(s) in the generated EPS/PDF files. You can use this feature to replace the problematic font-name (as well as any other text label).