views:

40

answers:

0

Hi!

I'm creating a PDF on the iPhone and this works almost brilliant. I just get one annoying error in the console when I draw text:

<Error>: invalid Type1 font: unable to stream font

I'm using the following code to do the text drawing:

[title drawInRect:textRect withFont:[UIFont fontWithName:@"Helvetica-Bold" size:16]];

I've tried out several fonts:

  • Times-Roman
  • Helvetica
  • Courier
  • Times-Bold
  • Helvetica-Bold
  • Courier-Bold

But I get the error for each of these fonts. What's wrong?