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: kThemeCurrentContextFont?




On Nov 14, 2004, at 10:59 PM, Bryan Pietrzak wrote:


I have a simple problem (riiight ;) I want to draw "large" text as part of my custom hiview. In this case, "large" is generally about 33% larger than the font used in the menu bar. Specifically, it's 24 pt Verdana. The text will be in CFStrings and I don't know (or care) what the encoding is.

So... how can I do this without relying on the QD port? Sure, I can set the font and size in the port and use kThemeCurrentPortFont along with HIThemeDrawTextBox, but I'm trying to move away from port usage where possible (and practical).

I would do this by first setting the context's CTM to scale the text size appropriately, and then drawing with HIThemeDrawTextBox and a standard theme font.


-eric
_______________________________________________
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: 
 >kThemeCurrentContextFont? (From: Bryan Pietrzak <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.