Closed
Bug 1492786
Opened 7 years ago
Closed 7 years ago
Font "Rocher Color" doesn't render in latest Nightly
Categories
(Core :: Layout: Text and Fonts, defect)
Core
Layout: Text and Fonts
Tracking
()
RESOLVED
INVALID
People
(Reporter: mbalfanz, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
The font "Rocher Color" does not render in the latest Nightly, but it does in DevEdition. (see screenshot-1 attached, left DevEdition and right Nightly)
STR: Visit v-fonts.com in Nightly and scroll down to "Rocher Nightly"
ER: Font renders
AR: Font is not visible
The DevTools console gives some errors that might help here (screenshot-2)
| Reporter | ||
Comment 1•7 years ago
|
||
| Reporter | ||
Updated•7 years ago
|
Summary: Rocher Color not rendering in latest Nightly → Font "Rocher Color" doesn't render in latest Nightly
Comment 2•7 years ago
|
||
As indicated by the errors in the console, it looks like the font has an invalid GDEF table; specifically, the Item Variation Store is broken.
Dumping the font with TTX, we see:
<GDEF>
<Version value="0x00010003"/>
<GlyphClassDef Format="2">
... snipped ...
</GlyphClassDef>
<MarkAttachClassDef Format="2">
... snipped ...
</MarkAttachClassDef>
<VarStore Format="1">
<Format value="1"/>
<VarRegionList>
<!-- RegionAxisCount=0 -->
<!-- RegionCount=0 -->
</VarRegionList>
<!-- VarDataCount=1 -->
<VarData index="0">
<!-- ItemCount=0 -->
<NumShorts value="0"/>
<!-- VarRegionCount=0 -->
</VarData>
</VarStore>
</GDEF>
According to the spec[1] the VarRegionList here is required to have a RegionAxisCount that matches the axisCount in the font's 'fvar' table:
"uint16 axisCount The number of variation axes for this font. This must be the same number as axisCount in the 'fvar' table."
This font has two axes defined in 'fvar' (BEVL and SHDW); however, the GDEF's variation store doesn't match this, and so our variation-font sanitizer rejects it as broken.
[1] https://docs.microsoft.com/en-us/typography/opentype/spec/otvarcommonformats#a-namevariationregions-idvariationregionsvariation-regionsa
Comment 3•7 years ago
|
||
FTR, I've just sent email to the font developers (using contact info from https://www.harbortype.com/about/) to make them aware of this issue.
| Reporter | ||
Comment 4•7 years ago
|
||
Thanks for the follow-up! I was mainly surprised that it works fine in DevEdition (and Chrome/Safari respectively), so I thought it might be a regression.
Comment 5•7 years ago
|
||
That'll be because gfx.downloadable_fonts.otl_validation is set to false in DevEdition, I think, so we don't validate the GDEF table.
Comment 6•7 years ago
|
||
I don't think there's anything for us to do here; when validation is enabled, the font is correctly rejected because of the inconsistency between GDEF and fvar tables.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Comment 8•7 years ago
|
||
I am the developer of Rocher Color. Jonathan was right, there was an internal problem on the font file and I just published an update that fixes it. If you see any more issues, just let me know.
You need to log in
before you can comment on or make changes to this bug.
Description
•