Mailing Lists: Apple Mailing Lists

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

Style and Matrix transformation



Hi
I want to draw text with style and matrix transformation.
		CGAffineTransform trans;
		trans = ...;
		fCGContext->SetTextMatrix(trans);
this fonction work but then I'm not able to use the style.

If I use ATSU routine I got the style but
theTags[0] = 289L;//kATSUFontMatrixTag = 289L;
theSizes[0] = sizeof(CGAffineTransform);
theValues[0] = &trans;
err = ATSUSetLayoutControls (wdataP->textLayout,1L,theTags,theSizes,theValues);
return err is kATSUInvalidAttributeTagErr = -8799


Calling ATSUSetLayoutControls with kATSUImposeWidthTag return also kATSUInvalidAttributeTagErr
Calling ATSUSetLayoutControls with kATSUCGContextTag return also noErr


I've try to call the fonction with Mach0 but the result is the same.
Is there something I've forgot when initialisating?
Any idea.?
Thanks
Vincent

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

This email sent to 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.