Re: Drawing text with specifying font
Re: Drawing text with specifying font
- Subject: Re: Drawing text with specifying font
- From: Aki Inoue <email@hidden>
- Date: Fri, 6 Jul 2001 12:50:35 -0700
Candide,
The content of the dictionary is any combination of attributes for
NSAttributedString.
So, you can do [NSString drawAtPoint:p withDictionary:[NSDictionary
dictionaryWithObjectsAndKeys:yourFont, NSFontAttributeName, nil]].
Aki
On 2001.07.06, at 10:52, Candide Kemmler wrote:
Hi !
I'm trying to draw text with various transformations and a font.
The transformations work, but I can't specify the font.
I tried [ NSFont set ] (you know what I mean), but when I do
[NSString drawAtPoint:p withDictionary:nil ],
the font remains to a default value.
Perhaps I should consider the dictionary to be provided. But in the
absence of any doc, I just set it to nil.
Does anyone know how to handle this ?
Candide
PS: it seems to me that specifying a dictionary at every drawString is
a huge overhead...
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev