Rajesh Narayanan
2007-Nov-07 11:02 UTC
[Fontconfig] Problem compiling fontconfig2.4.2 in AIX
I am getting following error when make is run for AIX 5.2. gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR=\"/usr/local/var/cache/fontconfig\" -DFONTCONFIG_PATH=\"/usr/local/etc/fonts\" -g -O2 -MT fcatomic.lo -MD -MP -MF .deps/fcatomic.Tpo -c fcatomic.c -DPIC -o .libs/fcatomic.oIn file included from fcatomic.c:215:fcaliastail.h:7:2: #endif without #iffcaliastail.h:10:2: #endif without #iffcaliastail.h:13:2: #endif without #iffcaliastail.h:16:2: #endif without #if lots of lines like this. Attaching make.log. Could anyone please help me out here (I am newbee for installing packages like this in AIX) Regards, Raj _________________________________________________________________ Call friends with PC-to-PC calling -- FREE http://get.live.com/messenger/overview -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freedesktop.org/archives/fontconfig/attachments/20071107/f6e67e98/attachment-0001.htm -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: make.log Url: http://lists.freedesktop.org/archives/fontconfig/attachments/20071107/f6e67e98/attachment-0001.txt
hi I downloaded a "Language coverage analyzer" script from http://dejavu.sourceforge.net/wiki/index.php/Font_utilities and used it on a CJK font, WenQuanYi Zen Hei to test its locale coverage. The font file can be downloaded from http://wenq.org/daily/zenhei/ . After converting ttf file to sfd using fontforge, and using the latest fc-lang data, the script produced a table of language coverage. Strangely, the table indicates there is a 100% coverage to ja language, however, installing this font to my system and run fc-cache, then run fc-list "WenQuanYi Zen Hei" lang the output does not include ja (Japanese) language. I am wondering if fontconfig does additional check to comparing to fc-lang data, and if there is a way to tell which code points are missing? thanks Qianqian
On Sun, 2007-11-11 at 22:36 -0500, Qianqian Fang wrote:> I am wondering if fontconfig does additional check to > comparing to fc-lang data, and if there is a way to tell > which code points are missing?Yes, ttf fonts have some OS/2 table bits that indicate which Han languages they are designed to support; your font likely indicates that it supports Chinese, so fontconfig elides the Japanese language from the supported list, even though the font completely covers the Unicode codepoints required by Japanese. -- keith.packard at intel.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20071111/8e4b20e1/attachment.pgp
do you see any downside to leave the language unspecified in the OS/2 table in the font, or, alternatively, use fc-lang data alone without looking up the OS/2 table in fontconfig to determine coverage? Keith Packard wrote:> Yes, ttf fonts have some OS/2 table bits that indicate which Han > languages they are designed to support; your font likely indicates that > it supports Chinese, so fontconfig elides the Japanese language from the > supported list, even though the font completely covers the Unicode > codepoints required by Japanese. > >
On Mon, 2007-11-12 at 00:40 -0500, Qianqian Fang wrote:> do you see any downside to leave the language unspecified in > the OS/2 table in the font, or, alternatively, use fc-lang data > alone without looking up the OS/2 table in fontconfig to determine > coverage?Yes, of course. Chinese fonts are not suitable for displaying Japanese text (and vice-versa, of course). They''ll get used if you have nothing else, but if you''ve got both kinds of fonts, you''ll get the right ones. This also works for Korean and traditional vs simplified Chinese. -- keith.packard at intel.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20071112/759b9103/attachment.pgp
hi Keith thank you for explaining. here are the lang tags of this font: mars:~> fc-list "WenQuanYi Zen Hei" lang :lang=aa|af|ast|ava|ay|be|bg|bi|br|ca|ce|ch|co|da|de|el|en|es|eu|fj|fo|fr|fur|fy|gd|gl|gv|ho|ia|id|ie|ik|io|is|it|ko|kum|lb|lez|mg|nb|nds|nl|nn|no|ny|oc|om|os|pt|rm|ru|sel|sh|sm|sma|smj|so|sq|sr|sv|sw|tn|to|ts|vo|wa|wo|xh|yap|zh-cn|zh-hk|zh-mo|zh-sg|zh-tw|zu both Korean (ko) and traditional Chinese (zh_tw,zh_hk,zh_mo) were recognized, but not Japanese. Does this means that there is another font (for example: KochiGothic) which declares a OS/2 bit for Japanese, but no Korean font does that on my system? I loaded the font ttf to fontforge, from Font Info\General dialog, I found a "Interpretation" field: http://fontforge.sourceforge.net/fontinfo.html#PS-General the options of this field include "Japanese/S. & T. Chinese/Korean", the current value for this font is "None". Is this identical to the bit that you have referred to? just trying to understand the behavior of the font. thank you Qianqian Keith Packard wrote:> On Mon, 2007-11-12 at 00:40 -0500, Qianqian Fang wrote: > >> do you see any downside to leave the language unspecified in >> the OS/2 table in the font, or, alternatively, use fc-lang data >> alone without looking up the OS/2 table in fontconfig to determine >> coverage? >> > > Yes, of course. Chinese fonts are not suitable for displaying Japanese > text (and vice-versa, of course). They''ll get used if you have nothing > else, but if you''ve got both kinds of fonts, you''ll get the right ones. > This also works for Korean and traditional vs simplified Chinese. > >