• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Issues with implementing WYWIWYG font menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Issues with implementing WYWIWYG font menu (From: David Durkee <email@hidden>)

  • Prev by Date: Re: malloc(0) returns a pointer, not NULL
  • Next by Date: Re: Help: NSScrollView is resizing its documentView down to (0, 0)
  • Previous by thread: Re: Issues with implementing WYWIWYG font menu
  • Next by thread: Re: Issues with implementing WYWIWYG font menu
  • Index(es):
    • Date
    • Thread