Hi Glenn,

Thank you for answering. Now I can understand why menu item title is black
in fonts popup of iWork apps. Even if they are selected.

Regards,

RImas M.

On Tue, Aug 2, 2011 at 6:13 PM, Glenn L. Austin <[email protected]>wrote:
>
> Yes -- don't do that!!!
>
> You are asking the system to not only iterate through all of the fonts and
> styles, but to also set each menu item's text to that font and style.  The
> iteration part is fairly quick, setting the item text requires that the font
> be loaded and prepared for use just to draw that *one text item*.  Preparing
> each font takes a small amount of time, but multiplied by the 100+ fonts on
> a system gives you a noticeable time delay.
>
> Most applications that draw the font menu using the fonts actually
> pre-create the menu items as images of the menu item text, then only display
> the image in the menu.
>
> (History: I've worked on both the AppleWorks and the Microsoft Office 2011
> font menus in my career.)
>
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to