Re: Changing font size
Re: Changing font size
- Subject: Re: Changing font size
- From: Robert Cerny <email@hidden>
- Date: Thu, 11 Dec 2003 15:20:19 +0100
Hi,
maybe I don't fully understand your problem, but could
NSAttributedString/NSMutableAttributedString be an answer for you? You
will create just two instances of two font variants and supply them as
an NSFontAttribute.
HTH
Robert
On 11.12.2003, at 14:21, John Timmer wrote:
>
I'd like to have a single base font that's used to draw strings at
>
different
>
sizes, depending on context. As such, it seems simplest to save a
>
single
>
font in user defaults, and resize that according to where I need it.
>
>
The problem is that there seems to be no straightforward way to go
>
about
>
doing this. The only way I can figure is to get an NSFontDescriptor,
>
pull
>
the size out of that, change it, and then recreate a new font using the
>
different size. It all seems seriously inefficient and complicated,
>
and I
>
know that most things done with Cocoa aren't like that, so I assume I'm
>
missing something.
>
>
Any advice?
>
>
JT
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.