RE: NSFont with matrix
RE: NSFont with matrix
- Subject: RE: NSFont with matrix
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Wed, 10 Sep 2003 10:06:19 -0400
How about the docs for NSFont's -matrix method? " In most cases, with a
font of fontSize, this matrix is [fontSize 0 0 fontSize 0 0]."
Jonathan
>
-----Original Message-----
>
From: email@hidden
>
[mailto:email@hidden]On Behalf Of Bryson, Stuart
>
Sent: Wednesday, September 10, 2003 12:25 AM
>
To: email@hidden
>
Subject: NSFont with matrix
>
>
>
Why does this work:
>
>
float myMatrix[6] = {100,0,0,100,0,0};
>
>
but not this
>
>
float myMatrix[6] = {100,0,0,50,0,0};
>
>
with this code:
>
>
NSFont *blah = [NSFont fontWithName:@"Times-Roman" matrix:myMatrix];
>
[myMutableAttString addAttribute:NSFontAttributeName value:blah
>
range:NSMakeRange(0,5)];
>
[myView lockFocus];
>
[myMutableAttString drawAtPoint:NSMakePoint(100,120)];
>
[subView unlockFocus];
>
>
Is there something I misunderstand about the NSFont matrices? Is there
>
any documentation someone can point me to.
>
Stuart.
>
_______________________________________________
>
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.
_______________________________________________
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.