To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=78970





------- Additional comments from [EMAIL PROTECTED] Sat Jul 14 19:54:17 +0000 
2007 -------
@ hdu:

I've tested your suggestion about checking script code and language code in
GetDevFontAttributes(), and found it is rather difficult to detect CJK fonts
with it.

This is because it detects some non-CJK fonts as CJK font because
ATSUGetIndFontName() sometimes return CJK language codes for these fonts. For
example, Monaco has kFontSimpleChineseScript and kFontSimpChineseLanguage at
nNameIndex is 27.  Geneva also has all four CJK codes at some indices. 
Contrarily, it doesn't work for Hei and Kai (Simplified Chinese) fonts as they
only contain kFontRomanScript and kFontEnglishLanguage.


So next, I've tested encoding check of cmap subtable for Mac fonts as in the
attached patch, and found it works perfectly to detect whether the font is CJK
capable.  I've implemented the checks after generic OS/2 table detection.

As in the new screenshot, it also works for Korean and Chinese Mac fonts which
lack OS/2 table.



---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to