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: DrawThemeTextBox and own font settings



Maybe  TXNDrawCFStringTextBox could help you.

http://developer.apple.com/documentation/Carbon/Conceptual/ HandlingUnicodeText_MLTE/mlte_tasks/chapter_16_section_2.html
http://developer.apple.com/documentation/Carbon/Reference/ Multilingual_Text_Engine/mlte_refchap/function_group_1.html#// apple_ref/doc/c_ref/TXNDrawCFStringTextBox


laurent

On Jan 10, 2005, at 5:20 PM, Felix Schwarz wrote:

Hi,

I need to render text supplied in a CGStringRef into a CGContextRef into a rectangle and have it being wrapped to fit into this box.

Now while DrawThemeTextBox seems perfect for this task, it does not seem to support using custom fonts with CGContextRefs. kThemeCurrentPortFont could be a possible solution to my problem, but it seems to be only available when using Quickdraw and since I'll be using a CGContextRef obtained via CGBitmapContextCreate as destination context, this does not really look like a solution.

Everything comes down to this: can I use DrawThemeTextBox with a custom font setting with a CGBitmapContextCreate and without invoking Quickdraw functions? If not, is there another function available in OS X that I can use for this purpose?

Any help would be greatly appreciated.

Best regards,
Felix Schwarz

_______________________________________________
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: 
 >DrawThemeTextBox and own font settings (From: Felix Schwarz <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.