Restricted FontPanel
Restricted FontPanel
- Subject: Restricted FontPanel
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sun, 26 May 2013 18:48:30 +0700
I want (on OS X 10.8.3) to show a font panel, which only has nice fonts (e.g. only fonts which are able to show "门").
There is a delegate method of NSFontManager:
- (BOOL)fontManager:(id)theFontManager willIncludeFont:(NSString *)fontName
Requests permission from the Font panel delegate to display the given font name in the Font panel.
Looks exactly the thing I need.
But then the documentation ends with:
Important: This delegate method is not called in OS X versions 10.3 and later.
So: how to display a restricted Font Panel in 10.8?
Gerriet.
P.S.
NSFontPanel has this method:
reloadDefaultFontFamilies
"Triggers a reload to the default state, so that the delegate is called."
But there is no delegate for a FontPanel. There is a NSWindow delegate, but this does not help much.
Somehow either I or the documentation is a bit confused.
_______________________________________________
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