Saving as PDF


#1

I cannot discover why changing the integer in this line of -(void)prepareAttributes creates problems with Saving as PDF:

Leaving it at 75 generates a perfectly framed PDF, as advertised. However, if I change the font size to 150, the app runs fine, the letter is larger in the view, but the PDF generated is askew, in that the rect window is to the lower left of the view. The same thing happens if the integer is smaller, e.g., 45.

I have pored over the code, and I believe that the answer lies in this portion of the __block:

And yet, as far as I can determine, r is supposed to be derived from the view itself, NSRect r = [self bounds]; – So, how does the font size affect the bounds of the view??

Any commentary or explanation is appreciated, thank you very much.