Closed pathumego closed 5 months ago
fontbakery version: 0.12.5
Failed with ZeroDivisionError: float division by zero
File "/Users/yanone/.pyenv/versions/3.11.1/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/fontbakery/checkrunner.py", line 213, in _run_check
subresults = list(subresults)
^^^^^^^^^^^^^^^^
File "/Users/yanone/.pyenv/versions/3.11.1/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/fontbakery/checks/outline.py", line 366, in com_google_fonts_check_outline_direction
if path.direction == 1:
^^^^^^^^^^^^^^
File "/Users/yanone/.pyenv/versions/3.11.1/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/beziers/path/__init__.py", line 558, in direction
return math.copysign(1, self.signed_area)
^^^^^^^^^^^^^^^^
File "/Users/yanone/.pyenv/versions/3.11.1/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/beziers/path/__init__.py", line 541, in signed_area
flat = self.flatten()
^^^^^^^^^^^^^^
File "/Users/yanone/.pyenv/versions/3.11.1/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/beziers/path/__init__.py", line 494, in flatten
segs.extend(s.flatten(degree))
^^^^^^^^^^^^^^^^^
File "/Users/yanone/.pyenv/versions/3.11.1/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/beziers/quadraticbezier.py", line 58, in flatten
samples = self.sample(self.length/degree)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/yanone/.pyenv/versions/3.11.1/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/beziers/utils/samplemixin.py", line 20, in sample
step = 1.0 / float(samples)
~~~~^~~~~~~~~~~~~~~~
[code: failed-check]
The following glyphs have duplicate components which have the same x,y coordinates: * {'glyph': 'ellipsis', 'component': 'period', 'x': 0, 'y': 0} * {'glyph': 'ellipsis', 'component': 'period', 'x': 0, 'y': 0} * {'glyph': 'quotedblbase', 'component': 'comma', 'x': 0, 'y': 0} * {'glyph': 'guillemotleft', 'component': 'guilsinglleft', 'x': 0, 'y': 0} and {'glyph': 'trtight', 'component': 'guilsinglright', 'x': 0, 'y': 0}
[code: found-duplicates]Lcaron uses component comma.
Overridden: This check was originally a WARN but was overridden by the ufo profile: For Google Fonts, one of the comma-lookalikes is a FAIL
[code: bad-mark] * π₯ **FAIL**dcaron uses component comma.
Overridden: This check was originally a WARN but was overridden by the ufo profile: For Google Fonts, one of the comma-lookalikes is a FAIL
[code: bad-mark] * π₯ **FAIL**lcaron uses component comma.
Overridden: This check was originally a WARN but was overridden by the ufo profile: For Google Fonts, one of the comma-lookalikes is a FAIL
[code: bad-mark] * π₯ **FAIL**tcaron uses component comma.
Overridden: This check was originally a WARN but was overridden by the ufo profile: For Google Fonts, one of the comma-lookalikes is a FAIL
[code: bad-mark]Space and non-breaking space have differing width: The space glyph named space is 220 font units wide, non-breaking space named (uni00A0) is 200 font units wide, and both should be positive and the same. GlyphsApp has "Sidebearing arithmetic" (https://glyphsapp.com/tutorials/spacing) which allows you to set the non-breaking space width to always equal the space width.
[code: different-widths]GF_Latin_Core glyphset:
Language | FAIL messages |
---|---|
nl_Latn (Dutch) | Shaper didn't attach acutecomb to J |
^ | Shaper didn't attach acutecomb to uni0237 |
First line in license file is:
"copyright (c) 2015-2017, maname fonts project authors."
which does not match the expected format, similar to:
"Copyright 2022 The Familyname Project Authors (git url)"
[code: bad-format]Please do not host ZIP files on the project repository. These files were detected: * fonts/ttf/Maname-Regular.ttf.zip
[code: zip-files]Name Table entry: Copyright notices should match a pattern similar to:
"Copyright 2019 The Familyname Project Authors (git url)"
But instead we have got:
"Copyright 2015β2023 The Maname Project Authors <See at https://github.com/mooniak/maname-font/>"
[code: bad-notice-format]Font names are incorrect:
nameID | current | expected |
---|---|---|
Family Name | Maname | Maname |
Subfamily Name | Regular | Regular |
Full Name | Maname Regular | Maname Regular |
Postscript Name | Maname | Maname-Regular |
In this font fsType is set to 8 meaning that: The font may be embedded but must only be installed temporarily on other systems.
No such DRM restrictions can be enabled on the Google Fonts collection, so the fsType field must be set to zero (Installable Embedding) instead.
[code: drm]Missing required codepoints:
- 0x00BB (RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK)
[code: missing-codepoints]
Bad string at [nameID 0, 'utf_16_be']: 'b'Copyright 2015β2023 The Maname Project Authors <See at https://github.com/mooniak/maname-font/>''
[code: bad-string] * π₯ **FAIL**There are 1 strings containing non-ASCII characters in the ASCII-only NAME table entries.
[code: non-ascii-strings]The OS/2 sTypoDescender must be negative or zero. This font has a strictly positive value.
[code: typo-descender] * π₯ **FAIL**The hhea descender must be negative or zero. This font has a strictly positive value.
[code: hhea-descent]OS/2.fsSelection bit 7 (USE_TYPO_METRICS) wasNOT set in the following fonts: ['fonts/ttf/Maname-Regular.ttf'].
[code: missing-os2-fsselection-bit7]π₯ ERROR | β FATAL | π₯ FAIL | β οΈ WARN | β© SKIP | βΉοΈ INFO | β PASS | π DEBUG |
---|---|---|---|---|---|---|---|
1 | 0 | 13 | 14 | 115 | 6 | 101 | 0 |
0% | 0% | 5% | 6% | 46% | 2% | 40% | 0% |
Note: The following loglevels were omitted in this report:
Please address all of the above Fontbakery FAILs.
A few comments:
Check accent of Lcaron, dcaron, lcaron, tcaron
Use caroncomb.alt
for these, but replace the outlines with something that looks like the comma.
Shapes languages in all GF glyphsets
Attach anchors (top, bottom, etc) to J
and jdotless
, and also to all combining marks. These are required to compose certain character sequences in the text shaper, such as for Durch.
I suggest to use anchors and automatic glyph composition (disabled in font info) to compose all Latin characters. That will already solve a few other issue.
Additionally and related (the check is currently disabled in Fontbakery), please ensure that all legacy accents (non-*comb
) have positive sidebearings, and all combining marks have zero-width.
In fact, I tried to fix issues myself quickly and was going to send you a PR back, but changing the spacing of the marks changed the mark positions in all accented letters, and that was too much for me to deal with. Using automatic composition with anchors would have solved that, as the anchor positions are then relevant to the composition and not the mark's sidebearings, so the composed glyphs would have not changed at all when adjusting the sidebearings.
A font repository should not include ZIP files Ignore this one
Generally, please consider using Fontbakery on your end. You can update it to the latest version with pip install -U fontbakery
. Do this regularly, as the release cycle is increasing and issues get fixed more frequently nowadays.
@pathumego Please merge this PR (just spell-checking on the description) and then create a release so we can publish it. We need either a release or the font files to be available in the repo directly.
I have 6 more work days until end of June before my summer break. Would be great if we could finish this. We're almost there. The fonts are looking great.
README.md
FONTLOG.md
OFL.tt
FONTLOG.md