Fonts question.

**Hi folks, **

**I try to use the PDF backend in my plotting script, when I expect to have a pdf figure. However, when I open the figure in Adobe Illustrator, it turns out that the fonts are not “real fonts”. I mean I want to be able to directly edit them. For example, when I double click the fonts or use other ways, I want to edit the fonts without deleting them and replacing with new ones. Am I missing something or not doing it correctly? **

**Sample: **

use PDF backends

import matplotlib

matplotlib.use(‘PDF’)

import matplotlib.pyplot as plt

fig = plt.figure()

fig.savefig(‘sample.pdf’)

****Best,
Hongchun

You’ll want to set the rcParam “pdf.fonttype” to 42 to embed the
entire TTF file in the PDF file, allowing for editing text as text.

Mike
···

http://www.accelacomm.com/jaw/sdnl/114/51450054/Matplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-users

Just to be clear, are we talking about how we now save pdf/eps files with individual characters rather than entire strings? Is setting pdf.fonttype to 42 going to change that behavior?

Ben Root

···

On Wed, Dec 14, 2011 at 6:35 AM, Michael Droettboom <mdroe@…2662…> wrote:

You'll want to set the rcParam "pdf.fonttype" to 42 to embed the

entire TTF file in the PDF file, allowing for editing text as text.

Mike