[ft] checking national glyhs

2014-06-09 Thread Szépe Viktor
Good morning! I'd like to detect whether a glyph (e.g. 0x0150) is part of the font. Actually detect Hungarian language support of webpages. Font file names are extracted from CSS. Is it OK? ftdump -v /usr/share/fonts/truetype/msttcorefonts/verdana.ttf | grep 0x0151 Or should I care about

Re: [ft] checking national glyhs

2014-06-09 Thread Werner LEMBERG
I'd like to detect whether a glyph (e.g. 0x0150) is part of the font. Actually detect Hungarian language support of webpages. Font file names are extracted from CSS. You rather want to detect whether Unicode input character U+0150 has a mapping to a non-zero glyph index. Is it OK? ftdump

Re: [ft] checking national glyhs

2014-06-09 Thread Szépe Viktor
Is it OK? ftdump -v /usr/share/fonts/truetype/msttcorefonts/verdana.ttf | grep 0x0151 No, it isn't, you need flag `-V' for that :-) Thank you for your support! # ftdump -V /usr/share/fonts/truetype/msttcorefonts/verdana.ttf ftdump: invalid option -- V ftdump: simple font dumper -- part of

Re: [ft] checking national glyhs

2014-06-09 Thread suzuki toshiya
Hi, For the codepoint scanning of ftdump, -v is OK, I think. In general speaking, you should exclude the cmap subtable with non-Unicode mapping (e.g. some east asian fonts and some MacOS fonts have non-Unicode mapping table - there is a possibility that the codepoint you're looking for is used

Re: [ft] checking national glyhs

2014-06-09 Thread suzuki toshiya
Oops, I made a mistake. $ fc-query serif:lang=hu I meant: $ fc-match serif:lang=hu. fc-match can accept the charset specification, but its expression is not easy for human eye (see discussion http://comments.gmane.org/gmane.comp.fonts.fontconfig/4916 ) Regards, mpsuzuki suzuki toshiya

Re: [ft] checking national glyhs

2014-06-09 Thread Werner LEMBERG
Is it what you suggested? $ fc-scan --format '%{lang}\n' Yes. But please read Toshiya's replies :-) Werner ___ Freetype mailing list Freetype@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype