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.

ttf2eot hanging on a subsetted TTF file

See original GitHub issue

config : Windows 7

font : Roboto TTF font, subsetted with pyftsubset (from fonttools)

I got this bug with node packages using ttf2eot as dependency. node version 6.10.0 (I’m currently trying updating node, I’ll keep you informed)

WORKSPACE\node_modules\microbuffer\index.js:170
    buffer.set(data, offset);
           ^

TypeError: Cannot read property 'length' of undefined
    at Uint8Array.set (native)
    at MicroBuffer.writeBytes (WORKSPACE\node_modules\microbuffer\index.js:170:12)
    at ttf2eot (WORKSPACE\node_modules\ttf2eot\index.js:229:7)
    at Object.<anonymous> (WORKSPACE\node_modules\ttf2eot\ttf2eot.js:58:22)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
0gust1commented, Aug 21, 2017

Got it ! (with your help) : console.log showed that the familyName was empty.

I called pyftsubset with the --name-IDs='*' parameter (according to the fonttool documentation) : still no luck.

Some hairs pulled later (and lot of tests using the ttx tool of fonttools), I tried with --name-IDs=*, and it worked.

Thanks for your hints !

0reactions
0gust1commented, Aug 21, 2017

Of course. I may drop a comment on fonttools repo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Genereated EOT files do not work in Windows on IE7/8 #10
Generate EOT file with ttf2eot 2. ... I downloaded the twitteru.ttf font, converted to EOT with the fontsquirrel.com generator and it works fine...
Read more >
Subsetting Fonts in PDF - Google Groups
In Subversion I've added the ability to embed a TTF file, and optionally subset the font via fontforge. To my knowledge the subsetting...
Read more >
Embedded OpenType - Wikiwand
Subsetting reduces the value of copying, as subsetted fonts will typically omit more than half of the characters. Other copy protection measures used...
Read more >
Web Fonts at the Crossing - A List Apart
The first “trusting” web font licenses from commercial font designers have ... TTF and OTF CFF fonts into WOFF files. ttf2eot is a...
Read more >
ttf2eot - Homebrew Formulae
Convert TTF files to EOT. https://github.com/wget/ttf2eot. License: LGPL-2.0-or-later or BSD-2-Clause. Formula JSON API: /api/formula/ttf2eot.json.
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