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

Bug in glyph count? #90

Open davelab6 opened 8 years ago

davelab6 commented 8 years ago
$ git clone https://github.com/phoikoi/VT323.git;
$ cd VT323;
$ pyfontaine --missing --set gwf_latin VT323.ttf ;
WARNING: Please install PyICU <https://pypi.python.org/pypi/PyICU> to enable CLDR related features, perhaps with: pip install pyicu
Fonts
  Font:
    Filename: VT323.ttf
    Common name: VT323
    Sub family: Medium
    Weight: normal
    Fixed width: yes
    Fixed sizes: no
    Copyright: Created by Peter Hull, with FontForge 2.0 (http://fontforge.sf.net)
    Version: Version 001.000 
    Glyph count: 212
    Character count: 209
    Orthographies:
        Orthography:
          Glyphs in set: 214
          Glyphs in font: 192
          Percent coverage: 89
          Missing values: 
              U+2013  –  EN DASH
              U+2014  —  EM DASH
              U+2018  ‘  LEFT SINGLE QUOTATION MARK
              U+2019  ’  RIGHT SINGLE QUOTATION MARK
              U+201a  ‚  SINGLE LOW-9 QUOTATION MARK
              U+201c  “  LEFT DOUBLE QUOTATION MARK
              U+201d  ”  RIGHT DOUBLE QUOTATION MARK
              U+201e  „  DOUBLE LOW-9 QUOTATION MARK
              U+2022  •  BULLET
              U+2039  ‹  SINGLE LEFT-POINTING ANGLE QUOTATION MARK
              U+203a  ›  SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
              U+00a0     NO-BREAK SPACE
              U+20ac  €  EURO SIGN
              U+0152  Œ  LATIN CAPITAL LIGATURE OE
              U+0153  œ  LATIN SMALL LIGATURE OE
              U+0131  ı  LATIN SMALL LETTER DOTLESS I
              U+02c6  ˆ  MODIFIER LETTER CIRCUMFLEX ACCENT
              U+02da  ˚  RING ABOVE
              U+02dc  ˜  SMALL TILDE
              U+2074  ⁴  SUPERSCRIPT FOUR
              U+2215  ∕  DIVISION SLASH
              U+2044  ⁄  FRACTION SLASH
          Common name: Google latin
          Support level: partial
$

There are 3 counts of glyphs and characters in this output, and the 2 glyph counts do not match:

Glyph count: 212
Character count: 209
      Glyphs in font: 192

This suggests there is a bug in the counting, somewhere