Hi Dan
Thank you for the reply.
We are setting the text color using
kATSUColorTag/kATSURGBAlphaColorTag. We need to support OS versions
10.3.9 onwards, so we are afraid that we can not use CoreText. ATSU
does not support 'outline' styled texts, so we found the workaround in
the link mentioned. As per the discussion in the list how do I set the
FillColor's Alpha to 0 to make it transparent in ATSU. Or, is there
any other way to draw text with outline style in ATSU?
Thank you,
--
Sam
On 8/30/07, Daniel Fenwick <email@hidden> wrote:
>
> 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
> To: email@hidden
> 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
>
_______________________________________________
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