-
Notifications
You must be signed in to change notification settings - Fork 479
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
Alternative to opentype.js #214
Comments
Hi! Nice :) I just added it to the awesome-typography list (You can check this list for OpenType related libraries!). If you want to check other alternatives to OpenType.js:
Both are OpenType parsers (not writers). I searched for your issues, but maybe you used another account for them (I can't find any)? By the way if you have a .zip with fonts working / not working it would be helpful for testing! 😉 |
Hi @photopea, always good to see some alternative implementations! As @Jolg42 mentioned, there are some other high-quality implementations as well. I'll look at your implementation to see if there are any speed gains we can port over to OpenType.js as well. If there are specific issues you'd like to see solved, please take them up with me (again). I've been completing my PhD in the last year(s) so OpenType.js was not always my nr 1 priority 😉 |
The most important problem was this one: #117 . I was waiting more than a year, but nobody fixed it. |
I was testin Typr.js with fontsquirrel fonts, which I accessed through their API: https://www.fontsquirrel.com/blog/2010/12/the-font-squirrel-api |
Looking at that issue, could you pinpoint what your parser is doing differently? I'd love to fix this. Thanks for the link to the fontsquirrel API. Didn't know about that one. |
When there is a CFF operator 14 (endchar) and stack length is 4, the "seac" (standard encoding accented character) command should be performed. Opentype does nothing. See http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/font/pdfs/5177.Type2.pdf page 35. |
Thanks! I saw that was an issue with e.g. character index 202, which has the code |
I just did a dump from the API, all fonts are available here https://github.com/Jolg42/FontSquirrel-Fonts |
Nice :) but I think it will be outdated like tomorrow :D |
Maybe…! But I don't think that the fonts are updated on regular basis. |
What was the solution that worked? Early termination? |
Can you please also make sure, that you can render the glyph 190 in this font? I am having problems with it. https://ufile.io/0a748 BTW it really helped me when I looked at the code of FreeType library. |
Hi. I wrote opentype.clj, a small wrapper for a subset of |
Hi @photopea It's been a while since your last message and it looks like your ufile.io/0a748 is 404. Do you still have it somewhere? |
By the way @ivarref good job! |
@Jolg42 I don't remember what was that file. Why do you still need it? |
@photopea I just wanted to try it again :) |
@Jolg42 Yes, I did it because some issues here were not fixed. It seemed to me like the author made opentype.js just for fun and did not plan to do updates. I am the kind of programmer that prefers writing his own code instead of deciphering foreign code :D If I find a bug in Typr.js now, I can fix it right away myself. I made it because I actually need it in practice at www.Photopea.com . It is used by thousands of people every day and bugs have been found and fixed very quickly. In general, I trust Typr.js much more than opentype.js now . It is much more advanced, e.g. it even supports Color Fonts :) https://blog.photopea.com/color-fonts-in-photopea.html while being much smaller, faster and RAM-friendlier than opentype.js |
The issue discussed above was fixed via #633. Closing. |
hi, can I check if it supports TTC file? can it display all characters in TTC files? Currently, I'm using opentype.js. It works well with TTF and OTF, but it doesn't support TTC file. I'm currently looking for other alternatives. |
This is not a forum to advertise alternative projects. |
That's great!! I'm working on a .NET Core project with React for the front end. Can this tool be implemented into the project? |
This is not a forum to advertise alternative projects.
The text was updated successfully, but these errors were encountered: