Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sfntly conversion failed for font that converts properly with other services #6

Open
onassar opened this issue Aug 6, 2017 · 13 comments
Labels

Comments

@onassar
Copy link

onassar commented Aug 6, 2017

Receiving the following when trying to convert the linked-to font, whereas using other online services for font conversion works fine:

java.lang.IndexOutOfBoundsException: Index attempted to be read from is out of bounds: 4e
        at com.google.typography.font.sfntly.data.ReadableFontData.readUByte(Unknown Source)
        at com.google.typography.font.sfntly.data.ReadableFontData.readULong(Unknown Source)
        at com.google.typography.font.sfntly.table.core.OS2Table.ulCodePageRange1(Unknown Source)
        at com.google.typography.font.tools.conversion.eot.EOTWriter.writeCodePages(Unknown Source)
        at com.google.typography.font.tools.conversion.eot.EOTWriter.convert(Unknown Source)
        at ConvertFont$EOTConverter.convert(ConvertFont.java:48)
        at ConvertFont.main(ConvertFont.java:165)
sfntly conversion failed

The font is here:
https://expirebox.com/files/3e5d0251583dbef1ab869ae703fc1c36.ttf

@bdusell
Copy link
Owner

bdusell commented Aug 6, 2017

Reproduced. I've seen this before with one other font too. It looks like it only happens when using sfntly to generate eot, whereas converting to woff works fine.

There must be something about the file that the eot converter doesn't like. I noticed that there's a glyph called glyph135 that doesn't have a Unicode codepoint associated with it.

@bdusell bdusell added the bug label Aug 6, 2017
@onassar
Copy link
Author

onassar commented Aug 6, 2017 via email

@onassar
Copy link
Author

onassar commented Aug 7, 2017

@bdusell
Copy link
Owner

bdusell commented Aug 7, 2017

I can take a look at the sfntly code and see if I can't figure out the problem.

@onassar
Copy link
Author

onassar commented Aug 7, 2017

Okay should I keep providing more examples?

@bdusell
Copy link
Owner

bdusell commented Aug 7, 2017

Actually both positive and negative examples would be helpful.

@onassar
Copy link
Author

onassar commented Aug 7, 2017

Here's a zip of 7 fonts that work without an issue:
https://expirebox.com/download/b69233ab7af57c8adde9466f341a6509.html

@onassar
Copy link
Author

onassar commented Aug 7, 2017

Any progress by chance?

@bdusell
Copy link
Owner

bdusell commented Aug 7, 2017

Hi -- sorry, I've been busy with other projects and haven't gotten a chance to dig into this yet. TBH I can't make any promises about fixing this in the short term, but any fixes you find would be most appreciated!

@bdusell
Copy link
Owner

bdusell commented Oct 17, 2017

Looks like woff2_compress also fails on this font.

$ ./vendor/woff2/woff2_compress test-out/upld9c1efb9d.ttf 
Processing test-out/upld9c1efb9d.ttf => test-out/upld9c1efb9d.woff2
Parsing of the input font failed.
Compression failed.

Would it be possible to upload that font again? I'm sure the woff2 maintainers would like to know.

@onassar
Copy link
Author

onassar commented Oct 17, 2017

Were you not able to download it?
I don't have the original anymore

@bdusell
Copy link
Owner

bdusell commented Oct 17, 2017

I have the font. May I provide it to them for debugging?

@onassar
Copy link
Author

onassar commented Oct 17, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants