experiments.hertzen.com icon indicating copy to clipboard operation
experiments.hertzen.com copied to clipboard

Getting other fonts to load (byteOffset)

Open Aetherpoint opened this issue 11 years ago • 2 comments

Was trying to load up a couple of other fonts like LiberationSans-Regular and a simple one glyph .ttf file, but it throws an index size error.

Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1 
if (byteOffset + size > this.length) {
console.log("byteOffset: " + byteOffset);                  
throw new Error("INDEX_SIZE_ERR: DOM Exception 1");
}

Looked through it and caught up on basic Open Type tables but couldn't trace things to the source of the problem. How should I set things / where should I look to get it to work with other fonts?

Aetherpoint avatar Jul 17 '14 23:07 Aetherpoint

I'm afraid I don't really remember much regarding this project anymore, I'd recommend looking through http://www.microsoft.com/typography/SpecificationsOverview.mspx

niklasvh avatar Jul 18 '14 04:07 niklasvh

Hmm, okay. Thanks anyways. It's pretty specific binary data type stuff, whatever it is. Throws the same error from just re-exporting the working .ttf file from Robofont. I'll keep digging.

Aetherpoint avatar Jul 18 '14 05:07 Aetherpoint