[feaLib] OTLOffsetOverflowError with Source Sans Pro
See original GitHub issueI’m getting an OTLOffsetOverflowError
when applying Source Sans Pro features with feaLib. Going to https://github.com/adobe-fonts/source-sans-pro/tree/master/Roman/Regular and calling:
apply-feature-file.py features font.ttf font2.ttf
Gives me:
Traceback (most recent call last):
File "/fonttools/Snippets/fontTools/ttLib/tables/otBase.py", line 277, in getData
items[i] = packUShort(item.pos - pos)
File "/fonttools/Snippets/fontTools/ttLib/tables/otBase.py", line 522, in packUShort
return struct.pack(">H", value)
struct.error: 'H' format requires 0 <= number <= 65535
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/fonttools/Snippets/apply-feature-file.py", line 19, in <module>
font.save(outputFontPath)
File "/fonts/fonttools/Snippets/fontTools/ttLib/__init__.py", line 216, in save
self._writeTable(tag, writer, done)
File "/fonttools/Snippets/fontTools/ttLib/__init__.py", line 648, in _writeTable
tabledata = self.getTableData(tag)
File "/fonttools/Snippets/fontTools/ttLib/__init__.py", line 659, in getTableData
return self.tables[tag].compile(self)
File "/fonttools/Snippets/fontTools/ttLib/tables/otBase.py", line 91, in compile
return writer.getAllData()
File "/fonttools/Snippets/fontTools/ttLib/tables/otBase.py", line 408, in getAllData
tableData = table.getData()
File "/fonttools/Snippets/fontTools/ttLib/tables/otBase.py", line 282, in getData
raise OTLOffsetOverflowError(overflowErrorRecord)
fontTools.ttLib.tables.otBase.OTLOffsetOverflowError: ('GPOS', 'LookupIndex:', 10, 'SubTableIndex:', 1, 'ItemName:', 'ClassDef2', 'ItemIndex:', None)
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (9 by maintainers)
Top Results From Across the Web
Source Sans Pro - Google Fonts
Source ® Sans Pro, Adobe's first open source typeface family, was designed by Paul D. Hunt. It is a sans serif typeface intended...
Read more >Source Sans Pro Font Combinations & Similar Fonts - Typewolf
Websites using the typeface Source Sans Pro with personal recommendations for similar web fonts, suggested font pairings and the closest free alternative.
Read more >Source Sans | Adobe Fonts
Explore Source Sans designed by Paul D. Hunt at Adobe Fonts. ... Popular Adobe Express templates that use Source Sans. Recommendations.
Read more >Source Sans Pro Google Font Pairings - Figma
Ready made Source Sans Pro google font pairings that pair well with Cardo, Abril Fatface, Yeseva One, Lato, Playfair and Fira Mono.
Read more >Source Sans Pro Font Free by Adobe - Font Squirrel
Download and install the Source Sans Pro free font family by Adobe as well as test-drive and see a complete character set.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should be fixed!
Let’s continue in https://github.com/behdad/fonttools/issues/537