Re: fonts - yet another desperate plea
Re: fonts - yet another desperate plea
- Subject: Re: fonts - yet another desperate plea
- From: "Louis C. Sacha" <email@hidden>
- Date: Fri, 19 Dec 2003 07:47:12 -0800
Hello...
You might be able to make your own filter using the results of one or
omore of these NSFont methods:
- (NSString *)encodingScheme;
- (NSStringEncoding)mostCompatibleStringEncoding;
- (NSCharacterSet *)coveredCharacterSet;
- (unsigned)numberOfGlyphs;
You will have to make an instance of each font to test, but as long
as there aren't too many fonts installed it shouldn't take very long.
If you can figure out a common characteristic or set of
characteristics that the problem fonts have, you can filter them out
of the font panel by calling the reloadDefaultFontFamilies method of
the fontPanel to reload and filter those fonts out (the description
of the reloadDefaultFontFamilies method in the NSFontPanel
documentation describes the reload as providing the delegate an
"opportunity to scrutinize the default list of fonts to be displayed
in the panel", although you'll have to find the details of how that
process works).
Hope that helps,
Louis
Bob wrote:
But the problem with oddball fonts remains. The standard font panel
includes them and when you try and type with them it silently
switches the font to Lucida Grande or some other recently used
western font. I instrumented everything, changeFont:, notifications,
etc., and cannot find where this is happening. Evidently something
in the font manager detects it and just changes it. One font, Bodoni
Ornaments, even lets you enter the symbols from the keyboard until
you type the ' character where upon it switches itself to dread
Lucida Grande ( because it has no encoding for ' ?)
...
I can't believe that there is no way to detect this and filter or
flag them. Someone must know something about this. Somebody ?
Anybody ? Help ! :-)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.