• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSFont with matrix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Prev by Date: Boost Libraries and Project Builder
  • Next by Date: Re: Boost Libraries and Project Builder
  • Previous by thread: Re: Boost Libraries and Project Builder
  • Next by thread: RE: NSFont with matrix
  • Index(es):
    • Date
    • Thread