Re: Symbol font
Re: Symbol font
- Subject: Re: Symbol font
- From: Douglas Davidson <email@hidden>
- Date: Thu, 2 Jan 2003 10:11:58 -0800
On Thursday, January 2, 2003, at 09:29 AM, Chris Ridd wrote:
The Cocoa text system's "font fixing" will look for a font that has
visual properties similar to the font assigned to a character if it
has
to find a different font. It takes into account such things as
weight,
italics, serif/sans-serif, etc... Obviously this is a slightly fuzzy
process. So if you have 5 fonts with the Kappa character, you should
get the one that is closest in appearance to the font that was
assigned
to the character.
Mike
Is it tunable? I could imagine that extremely fancy typesetting systems
would have a different (and possibly user-controlled) idea of what is
appropriate than Cocoa's text system.
Most things are tunable. In this case, an application could either
select suitable fonts as the characters are entered into the text,
before font fixing happens, or else override appropriate methods (e.g.
fixFontAttributeInRange:) on a custom NSTextStorage subclass.
The primary user control in most cases is that the user can explicitly
set the font if the system's choice seems inappropriate, but yes, there
are circumstances under which it would be convenient to have control
over the fallback list.
Douglas Davidson
_______________________________________________
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.