googlefonts / pyfontaine

Python tool to check font files for language/character set support
https://github.com/googlefonts/pyfontaine
GNU General Public License v3.0
104 stars 20 forks source link

Add a --missing to only show missing unicodes when requested #20

Closed davelab6 closed 10 years ago

davelab6 commented 10 years ago
$ pyfontaine Cantarell-Regular.ttf
Fonts
  Font:
    Common name: Cantarell
    Sub family: Regular
    Weight: normal
    Fixed width: no
    Fixed sizes: no
    Copyright: Copyright (c) 2009 Dave Crossland <dave@lab6.com>
    License: Copyright (c) 2009 Dave Crossland <dave@lab6.com>
    Version: Version 001.001 
    Vendor url: http://abattis.org
    Designer: Dave Crossland
    Designer url: http://abattis.org
    Glyph count: 391
    Character count: 388
    Orthographies:
        Orthography:
          Common name: African
          Native name: Afrikaans
          Support level: full
        Orthography:
          Common name: Baltic
          Native name: Baltic
          Support level: full
        Orthography:
          Common name: Basic Latin
          Native name: Basic Latin
          Support level: full
        Orthography:
          Common name: Catalan
          Native name: Català
          Support level: full
        Orthography:
          Common name: Central European
          Native name: Central European
          Support level: full
        Orthography:
          Common name: GWF 'cyrillic-ext+latin' subset actually implemented by Arimo
          Support level: fragmentary
          Percent coverage: 66
        Orthography:
          Common name: GWF 'cyrillic-ext+latin' subset actually implemented by Arimo
          Support level: fragmentary
          Percent coverage: 67
        Orthography:
          Common name: GWF 'cyrillic-ext+latin' subset actually implemented by Ubuntu
          Support level: fragmentary
          Percent coverage: 48
        Orthography:
          Common name: Adobe Latin 4
          Support level: fragmentary
          Percent coverage: 57
        Orthography:
          Common name: Adobe Latin 5
          Support level: fragmentary
          Percent coverage: 36
        Orthography:
          Common name: Pablo Impallari's latin-ext subset
          Support level: partial
          Percent coverage: 81
        Orthography:
          Common name: Lato Phase 2 (Euro Latin)
          Support level: partial
          Percent coverage: 84
        Orthography:
          Common name: Lato Phase 3 (Vietnamese)
          Support level: fragmentary
          Percent coverage: 61
        Orthography:
          Common name: GWF latin-ext
          Support level: fragmentary
          Percent coverage: 11
        Orthography:
          Common name: GWF latin
          Support level: partial
          Percent coverage: 99
        Orthography:
          Common name: GWF vietnamese
          Support level: fragmentary
          Percent coverage: 31
        Orthography:
          Common name: Pan African Latin
          Native name: Pan African Latin
          Support level: fragmentary
          Percent coverage: 37
        Orthography:
          Common name: Full Polish Alphabet
          Native name: Pełny Polski Alfabet
          Support level: full
        Orthography:
          Common name: Polish Accents
          Native name: Polskie Akcenty
          Support level: full
        Orthography:
          Common name: Western European
          Native name: Western European
          Support level: full
$ pyfontaine --missing Cantarell-Regular.ttf
Fonts
  Font:
    Common name: Cantarell
    Sub family: Regular
    Weight: normal
    Fixed width: no
    Fixed sizes: no
    Copyright: Copyright (c) 2009 Dave Crossland <dave@lab6.com>
    License: Copyright (c) 2009 Dave Crossland <dave@lab6.com>
    Version: Version 001.001 
    Vendor url: http://abattis.org
    Designer: Dave Crossland
    Designer url: http://abattis.org
    Glyph count: 391
    Character count: 388
    Orthographies:
        Orthography:
          Common name: African
          Native name: Afrikaans
          Support level: full
        Orthography:
          Common name: Baltic
          Native name: Baltic
          Support level: full
        Orthography:
          Common name: Basic Latin
          Native name: Basic Latin
          Support level: full
        Orthography:
          Common name: Catalan
          Native name: Català
          Support level: full
        Orthography:
          Common name: Central European
          Native name: Central European
          Support level: full
        Orthography:
          Common name: GWF 'cyrillic-ext+latin' subset actually implemented by Arimo
          Support level: fragmentary
          Percent coverage: 66
          Missing values: 
              U+0393  Γ  GREEK CAPITAL LETTER GAMMA
              U+03a0  Π  GREEK CAPITAL LETTER PI
              U+0400  Ѐ  CYRILLIC CAPITAL LETTER IE WITH GRAVE
              U+0401  Ё  CYRILLIC CAPITAL LETTER IO
              U+0402  Ђ  CYRILLIC CAPITAL LETTER DJE
              U+0403  Ѓ  CYRILLIC CAPITAL LETTER GJE
              U+0404  Є  CYRILLIC CAPITAL LETTER UKRAINIAN IE
              U+0405  Ѕ  CYRILLIC CAPITAL LETTER DZE
etc
vitalyvolkov commented 10 years ago

https://github.com/davelab6/pyfontaine/commit/43d6d84e60604ceb1f6efc6d7f4f9205f8a6576d