Cocoa doesn't use my fonts - all fonts are system fonts
Cocoa doesn't use my fonts - all fonts are system fonts
- Subject: Cocoa doesn't use my fonts - all fonts are system fonts
- From: Stefan <email@hidden>
- Date: Fri, 4 Aug 2006 20:07:16 +0200
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?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden