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

[fontbe] Match fonttools behaviour for LigCaret rounding #928

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

cmyr
Copy link
Member

@cmyr cmyr commented Sep 4, 2024

When generating variable FEA the various Feature Writers use otround, since variable FEA syntax does not support floats.

This is not an issue with kerning, since glyphsapp does not allow for non-integer kerning values, but it is an issue for LigatureCarets and potentially for other variable mark positions (this needs more investigation)

When generating variable FEA the various Feature Writers use otround,
since variable FEA syntax does not support floats.

This is not an issue with kerning, since glyphsapp does not allow for
non-integer kerning values, but it is an issue for LigatureCarets and
potentially for other variable mark positions (this needs more
investigation)
// when describing an anchor position we almost always use integers, but
// for some tests we want to accept floats so we can verify rounding behaviour.
// we define our own trait and impl it for only these two types so that the
// compiler doesn't need additional type info when we use int/float literals.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes me a little uncomfortable but I guess it's not public

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes this is just for a test helper.

@cmyr cmyr added this pull request to the merge queue Sep 4, 2024
Merged via the queue into main with commit 030cee4 Sep 4, 2024
10 checks passed
@cmyr cmyr deleted the delta-rounding branch September 4, 2024 17:27
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

Successfully merging this pull request may close these issues.

checklist: Get TTX diff matching for oswald
2 participants