> On 6 May 2015, at 7:21 am, David Durkee <da...@dwdurkee.com> wrote:
> 
> (the fonts I’m guessing)?
> 


Why guess when you can measure?

However it is almost certainly the fonts. No matter how you end up displaying 
them, you still need to initialize them at some point. You can probably warm up 
the Font Manager by iterating through all of its fonts (maybe as a background 
task) but bear in mind that could occupy a lot of memory - which might not 
matter.

Back in the old days (pre Mac OSX) one of the frequently seen solutions to the 
Font menu problem was to save the font menu titles as images and use a custom 
menu definition to display these, loading the real font lazily when the user 
actually chose it. You can still do much the same trick these days I expect, 
using a custom menu item. It’s a lot of work just to avoid a small delay though.

—Graham



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to