FROM : Douglas Davidson
DATE : Thu Jan 02 19:11:58 2003
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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Thu Jan 02 19:11:58 2003
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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Charles Brokaw | Dec 31, 21:57 | |
| Andreas Mayer | Jan 1, 00:41 | |
| Chris Ridd | Jan 1, 09:49 | |
| Mike Ferris | Jan 2, 17:45 | |
| Douglas Davidson | Jan 2, 18:26 | |
| Chris Ridd | Jan 2, 18:29 | |
| Douglas Davidson | Jan 2, 19:11 |






Cocoa mail archive

