We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › exporting font to pdf
Page Index Toggle Pages: 1
exporting font to pdf (Read 806 times)
exporting font to pdf
Nov 15th, 2007, 12:31pm
 
Hi,
I'm exporting text from my sketch to a pdf. In the sketch window the font i'm  using (courier-sans) is displayed correctly with both createFont() and loadFont().

With loadFont(), the text displays as white blocks in the pdf. With creatFont() as default helvetica.

Does anyone know how to export the right font with the pdf?

Thanks, Joris

Re: exporting font to pdf
Reply #1 - Nov 15th, 2007, 8:17pm
 
have you read the pdf reference, which addresses this?
Re: exporting font to pdf
Reply #2 - Nov 15th, 2007, 8:50pm
 
Yes i did, but aparently i missed something, a pointer would be helpfull!

many thanks, Joris
Re: exporting font to pdf
Reply #3 - Nov 22nd, 2007, 10:28am
 
On http://processing.org/reference/libraries/pdf/index.html the very last section ('Additional notes for the PDF renderer') states that "To force text to be treated as shape data, use textMode(SHAPE), immediately after size()."

Wink
Re: exporting font to pdf
Reply #4 - Nov 22nd, 2007, 10:34am
 
THANKS a lot mister lutz Wink
Page Index Toggle Pages: 1