question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[feaLib] OTLOffsetOverflowError with Source Sans Pro

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
behdadcommented, Apr 9, 2016

Should be fixed!

0reactions
behdadcommented, Apr 9, 2016
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found