Save figure as pdf without changing fontname
Mostra commenti meno recenti
Hello everyone, if I try to save a plot figure as pdf, where the font name of the axes and legend is changed to LM Roman, the text in the saved pdf hasn't LM Roman as font name. How can I fix this bug?
A short example:
plot(rand(10,1)); set(gca, 'FontName','LM Roman 10');
Thank you for your help.
4 Commenti
Yuvaraj Venkataswamy
il 22 Ago 2018
Check the below FAQ link,
https://in.mathworks.com/matlabcentral/answers/311820-save-a-figure-as-pdf
jonas
il 22 Ago 2018
How are you saving the figure? I don't have any problem with print nor export_fig.
jonas
il 23 Ago 2018
Have you tried with a different font, say Times new roman?
Risposte (4)
Yuvaraj Venkataswamy
il 22 Ago 2018
1 voto
Johannes
il 22 Ago 2018
0 voti
Lilly Verso
il 31 Ago 2018
0 voti
I have exactly the same issue. Please let me know if you solved it.
Best
2 Commenti
Lilly Verso
il 2 Giu 2019
Modificato: Lilly Verso
il 2 Giu 2019
Scott Cohen
il 11 Ott 2019
I have exactly the same issue as well. And export_fig does has not helped me with it.
Scott Cohen
il 11 Ott 2019
0 voti
I'm no expert on matlab, or any of these kinds of things, but after finding no resolution from this answer or anywhere else, I think I may have found a solution. I printed my figure using Microsoft XPS Document Writer, saving as an .oxps file. Then I searched online to find how to convert from .oxps to .eps, which is what I wanted. I found this site, which did the trick: https://convertio.co/oxps-eps/
Categorie
Scopri di più su Display Image in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

