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

fix sample cutOut* rect rendering. #31

Closed
h-sug1no opened this issue Apr 13, 2020 · 4 comments · Fixed by #32
Closed

fix sample cutOut* rect rendering. #31

h-sug1no opened this issue Apr 13, 2020 · 4 comments · Fixed by #32
Assignees

Comments

@h-sug1no
Copy link
Owner

something is wrong...

@h-sug1no h-sug1no self-assigned this Apr 13, 2020
@h-sug1no h-sug1no changed the title fix sample coutOut* rect rendering. fix sample cutOut* rect rendering. Apr 13, 2020
@h-sug1no
Copy link
Owner Author

h-sug1no commented Apr 13, 2020

petaluma E0A3:
image

Calculated positions look correct...

@h-sug1no
Copy link
Owner Author

h-sug1no commented Apr 13, 2020

steinbergmedia/bravura@c889f8e ?

Coordinates for cutOut... anchor points are now relative to the bottom left-hand corner of the glyph bounding box, rather than the glyph origin

@h-sug1no
Copy link
Owner Author

w3c/smufl#90

w3c/smufl@fdd1618

- of the glyph. The positions of each of the other corners of the cut-out
- rectangle are calculated using the bounding box of the glyph.
+ of the glyph. The coordinates of each cut-out are all specified relative
+ to the origin of the glyph, i.e. its bottom left-hand corner.

https://w3c.github.io/smufl/gitbook/specification/bbox-cut-outs.html

. The coordinates of each cut-out are all specified relative to the origin of the glyph, i.e. its bottom left-hand corner.

@h-sug1no
Copy link
Owner Author

h-sug1no commented Apr 16, 2020

cutOutOrigin_BBL: cutOut anchor points are relative to the:

  • unchecked(default): glyph origin.
  • checked: bottom left-hand corner of the glyph bounding box.

https://github.com/steinbergmedia/bravura/tree/788874a62eb7b7ed78ab3d7218a5cdd9fe346fb5

  • cutOut origin may relative to glyph origin.
  • e.g. : E2A0: cutOutNW may incorrect

image

https://github.com/steinbergmedia/petaluma/tree/c7a3e8edba148915e5d1af8a5d4a50e5da4e0ea2

image

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 a pull request may close this issue.

1 participant