Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to draw 'outline' styled text using ATSU?



With ATSUI, you need to set the color using the ATSUI style attribute, kATSUColorTag or kATSURGBAlphaColorTag.  Unlike CoreText which relies on the CGContext being already setup, ATSUI sets up the CGContext based on it's client's setting right before drawing and then returns the state back to what it was after it finishes drawing.  So if you don't need to be backward compatible with the same code set, I'd make the move to CoreText rather than ATSUI if you're going through the trouble anyway.

Dan


On Aug 28, 2007
From: Sam <email@hidden>
Date: August 28, 2007 7:31:37 AM PDT
Subject: How to draw 'outline' styled text using ATSU?

Hi there

We are converting our QuickDraw API for drawing text to ATSU calls. To
get the 'outline' style we followed the link,
http://lists.apple.com/archives/carbon-dev/2006/Jul/msg00072.html
[ Draw the text into A CGContext with the stroke color set to some
color and the fill color set to a transparent (alpha 0) color. ]

But either the CGContextSetStrokeColor and CGContextSetFillColor has
no effect on the text drawn. We are using ATSUDrawText API to draw.
Please suggest how to do outline style using ATSU.

Thank you
--
Sam
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >How to draw 'outline' styled text using ATSU? (From: Sam <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.