• 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
RE: NSFont with matrix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: blurry scrolling?
  • Next by Date: Re: blurry scrolling?
  • Previous by thread: NSFont with matrix
  • Next by thread: How do I convert data in NSString to NSImage
  • Index(es):
    • Date
    • Thread