[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] checking national glyhs
From: |
Szépe Viktor |
Subject: |
Re: [ft] checking national glyhs |
Date: |
Tue, 10 Jun 2014 03:04:09 +0200 |
User-agent: |
Internet Messaging Program (IMP) H5 (6.1.7) |
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 the FreeType project
-----------------------------------------------------------
Usage: ftdump [options] fontname
-n print SFNT name tables
-v be verbose
It seems there is no -V in my ftdump.
However, I strongly suggest that you use already existing solutions
like the `fontconfig' library, which contains code to scan a font for
detecting the supported scripts and languages. A single glyph doesn't
make up a font for Hungarian...
Is it what you suggested?
$ fc-scan --format '%{lang}\n'
/usr/share/fonts/truetype/msttcorefonts/verdana.ttf
Its output is
aa|af|av|ay|be|bg|bi|bin|br|bs|ca|ce|ch|co|cs|cy|da|de|el|en|eo|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gn|gv|ho|hr|hu|ia|ig|id|ie|ik|io|is|it|ki|kl|kum|la|lb|lez|lt|lv|mg|mh|mt|nb|nds|nl|nn|no|nr|nso|ny|oc|om|os|pl|pt|rm|ru|se|sel|sk|sl|sma|smj|smn|so|sq|sr|ss|st|sv|sw|tk|tl|tn|tr|ts|uk|uz|vo|vot|wa|wen|wo|xh|yap|zu|an|crh|csb|fil|hsb|ht|jv|kj|ku-tr|kwm|lg|li|ms|na|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|za
Is it stored in the font, or calculated?
fc doc says "This is computed by comparing the Unicode coverage of the
font with the orthography of each language."
So I think it's calculted, so font cannot "lie".
Szépe Viktor
--
+36-20-4242498 address@hidden skype: szepe.viktor
Budapest, XX. kerület