FROM : Stefan
DATE : Fri Aug 04 20:07:16 2006
I created a NSView subclass and use
>>
NSFont* font1= [NSFont fontWithName:@"Times-Roman" size:20.0];
<<
to create a font. Then, during (void)drawRect:(NSRect)rect, I set the
font using
>>>
[font1 set];
<<<
I get the correct line line-height of the font, but all fonts appear
on screen
and on print as system fonts of default size.
Do I have to implement special handling, since I'm on 10.4?
DATE : Fri Aug 04 20:07:16 2006
I created a NSView subclass and use
>>
NSFont* font1= [NSFont fontWithName:@"Times-Roman" size:20.0];
<<
to create a font. Then, during (void)drawRect:(NSRect)rect, I set the
font using
>>>
[font1 set];
<<<
I get the correct line line-height of the font, but all fonts appear
on screen
and on print as system fonts of default size.
Do I have to implement special handling, since I'm on 10.4?
| Related mails | Author | Date |
|---|---|---|
| Stefan | Aug 4, 20:07 | |
| Shawn Erickson | Aug 4, 20:16 | |
| Stefan | Aug 4, 20:24 | |
| Douglas Davidson | Aug 4, 21:47 | |
| Stefan | Aug 4, 21:53 | |
| Douglas Davidson | Aug 4, 21:59 |






Cocoa mail archive

