Re: Issues with implementing WYWIWYG font menu

2015-05-05 Thread Graham Cox
> On 6 May 2015, at 7:21 am, David Durkee 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

Re: Issues with implementing WYWIWYG font menu

2015-05-05 Thread Jens Alfke
> On May 5, 2015, at 2:21 PM, David Durkee 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

Re: Issues with implementing WYWIWYG font menu

2015-05-05 Thread Lee Ann Rucker
On May 5, 2015, at 2:21 PM, David Durkee wrote: > Yes, this approach has worked much better. I see only two drawbacks. > > 1) The first time the menu is opened, it takes as much as two seconds for it > to appear. This only seems to be true for the first instance of the menu that > is opened.

Re: Issues with implementing WYWIWYG font menu

2015-05-05 Thread David Durkee
Yes, this approach has worked much better. I see only two drawbacks. 1) The first time the menu is opened, it takes as much as two seconds for it to appear. This only seems to be true for the first instance of the menu that is opened. (It’s a popup menu in a document window, so different documen

Re: Issues with implementing WYWIWYG font menu

2015-04-29 Thread David Durkee
Oh, wow, I looked all over for something like that. Thanks, I'll try that tomorrow. -David > On Apr 29, 2015, at 9:44 PM, Graham Cox wrote: > > >> On 30 Apr 2015, at 6:33 am, David Durkee wrote: >> >> using a custom view in each NSMenuItem to draw the name of the font in its >> own font

Re: Issues with implementing WYWIWYG font menu

2015-04-29 Thread Steve Mills
On Apr 29, 2015, at 21:44:01, Graham Cox wrote: > > >> On 30 Apr 2015, at 6:33 am, David Durkee wrote: >> >> using a custom view in each NSMenuItem to draw the name of the font in its >> own font > > This isn’t really necessary - you can just set an attributed title on a > standard menu ite

Re: Issues with implementing WYWIWYG font menu

2015-04-29 Thread Graham Cox
> On 30 Apr 2015, at 6:33 am, David Durkee wrote: > > using a custom view in each NSMenuItem to draw the name of the font in its > own font This isn’t really necessary - you can just set an attributed title on a standard menu item and it will draw in the Font given in the attributes. You mi

Issues with implementing WYWIWYG font menu

2015-04-29 Thread David Durkee
I’m creating a WYSIWYG font menu using a custom view in each NSMenuItem to draw the name of the font in its own font. One problem I am having with it is that the first item under the mouse when it pops up is drawn highlighted, but when I move the mouse to the next item, the first one is not redr