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: TXNDrawCFStringTextBox wrapping



Jan

Does the kTXNDontDrawTextMask option in the TXNDraw***StringTextBox
calls make any sense, or is it just buggy and shouldn't be used ?

I use it to measure text.

TXNTextBoxOptionsData myOptions;

if (inOptions == nil) {
myOptions.optionTags = kTXNDontDrawTextMask;
myOptions.rotation = 0;
myOptions.options = nil;
inOptions = &myOptions;
}
::TXNDrawCFStringTextBox(inString, &ioBounds, atsu, inOptions);

I don't think the flushness should matter, but the width is the same whether flush or not (and all I'm after is width).
--

David Dunham A Sharp email@hidden
Voice/Fax: 206 783 7404 http://a-sharp.com
Efficiency is intelligent laziness.
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.




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.