Mac OS X ships with Thonburi as the Thai system font, and that's the font usually you get for Thai character substitution.

The font substitution system is applying sophisticated algorithm to closely match font traits, and it appears it's causing the random fallback. Probably the system should be smarter to offer more consistent fallback behavior so that apps are free from such worries. Please file an enhancement request.

In the meantime, if you want to control the font substitution behavior, you can create fonts with NSFontDescriptor that has custom NSFontCascadeListAttribute. Alternatively, you can post-process the system fallback result by overriding -[NSTextStorage fixFontAttributeInRange:].

Aki

On 2008/12/03, at 15:41, Gerriet M. Denkmann wrote:


When NSTextView and its friends try to display characters and encounter a character not present in the current font (e.g. THAI CHARACTER MO MA in Monaco 10pt.) then they have to get a corresponding glyph from some other font.

The problem: they sometimes pick up a font which is not suitable.
Is there a way (system wide, per user, per application or using code) to control the order of fonts being searched for missing glyphs?

In my case Thai characters get displayed in UPC-Angsana (first font in ~/Library/Fonts), which is a nice font, but rather small (Angsana 10pt. looks rather like 6pt.).


Kind regards,

Gerriet.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/aki%40apple.com

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to