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

App does not work with glyphs using quadratic curves #399

Open
rimas-kudelis opened this issue Sep 9, 2024 · 1 comment
Open

App does not work with glyphs using quadratic curves #399

rimas-kudelis opened this issue Sep 9, 2024 · 1 comment

Comments

@rimas-kudelis
Copy link

I'm trying to run the MFEKglif 2.0.1-revision-1 flatpak and when trying to open a glyph with quadratic curves, the application exists with the following error:

panicked at /run/build/MFEKglif/cargo/vendor/glifparser/src/outline/create.rs:137:17:
internal error: entered unreachable code: Quadratic point in cubic glyph! File is corrupt.

For what it's worth, I don't believe the file is corrupt, it just uses quadratic curves. Here's an example file: a.zip.

@Subject38
Copy link
Contributor

Subject38 commented Oct 26, 2024

I happened across this issue while checking on this repo by chance and I do believe the current handling of quadratic curves seems to be incorrect. I'm a bit in over my head on this but this is at minimum a bug in https://github.com/mfek/glifparser.rlib but possibly there's some odd behavior in this program directly as well. Thank you for the report! I did verify using fontforge's viewer that the file is entirely valid.

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

No branches or pull requests

2 participants