ttf2eot hanging on a subsetted TTF file
See original GitHub issueconfig : 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:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top 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 >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
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 !
Of course. I may drop a comment on fonttools repo.