NSFont with matrix
NSFont with matrix
- Subject: NSFont with matrix
- From: "Bryson, Stuart" <email@hidden>
- Date: Wed, 10 Sep 2003 14:24:40 +1000
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.