Re: Issues with implementing WYWIWYG font menu
Re: Issues with implementing WYWIWYG font menu
- Subject: Re: Issues with implementing WYWIWYG font menu
- From: Jens Alfke <email@hidden>
- Date: Tue, 05 May 2015 15:24:10 -0700
> On May 5, 2015, at 2:21 PM, David Durkee <email@hidden> wrote:
>
> 1) The first time the menu is opened, it takes as much as two seconds for it to appear.
And it might take a lot longer than that, for a user with a lot of fonts installed. (I have nearly 2000.) It can also allocate a ton of RAM for glyph caches.
> Is there a way I can precache whatever it is that takes so long that first time (the fonts I’m guessing)?
You could pre-render a sample of each font to an image, then save the image to a file or database keyed by the font name.
I'm not sure if it's possible to defer configuring a menu item until it's displayed, but if so that would speed things up a whole lot, since you'd only be displaying a few dozen fonts to start with.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden