-
Notifications
You must be signed in to change notification settings - Fork 17
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
Correct path direction for mark glyphs #87
Conversation
yes, I can inspect the glyphs. Is this the first step, prior to rehinting any composites that use those components? |
I guess it's the first step. All I have done is correct the contour direction. I haven't done anything in VTT. |
Ok, please prepare a src VTT font for me to inspect |
hi Marc, before we go any further, I am wondering if its possible to address this issues for all effected glyphs, just by changing the winding direction in the composite. an example. In the font where you made the changes uni0200 (GID 2864) Capital Latin A with Double Grave, now has the same winding direction for both Cap A and for Double Grave, (GID 448) whereas in the previous font the winding direction was different between the Cap A and double grave but uni0201 (GID 2865) Latin small letter a with Double Grave, now has a different winding direction for small 'a' and for Double Grave, (GID 448) whereas in the previous font the winding direction the same |
Got a screenshot? I don't see it in the vtt source I provided. |
Hi Marc, are you seeing something different to this? |
Hey Mike, I'm seeing the same thing which is good. However, I believe every contour in the last image is clockwise which is what we want. Look at the top right corner of the "a". Nodes 15, 16, 17, 18, 19 show that it is indeed clockwise in direction. |
apologies for that, yes you are correct. Let me double check all of the accented glyphs that use the components with the corrected winding direction. Will report back, will most likely be tomorrow. |
ok, looks good GID 448 and GID 1096 are referenced in the glyph program for a number of composites. All of these composites now have the same winding order for base glyph and for accent. the other glyphs listed now all have clockwise direction, but none of these are referenced in the glyph program for any accented glyphs. Glyphs needing attention to ensure hinting is updated to reference the correct points = All glyphs that had winding direction changed, and all composites that reference those glyphs. |
No need. I just wrote a script script to check this
Script heuristic:
when I run the script, on this PR, we've got issues with the following glyphs
I'll fix the contour direction for these glyphs tomorrow. |
@mikedug I've just updated the contour directions for
Changing the direction for these glyphs will fix the contour direction for the glyphs I listed in my previous post. I've also regenerated the src VTT file, https://github.com/TypeNetwork/Roboto/blob/direction/sources/Roboto%5Bital%2Cwdth%2Cwght%5D_VTT.ttf Could you take a look? I'm guess since I've just changed the direction of some base glyphs that the hinting is now broken. Would you be able to paste the VTT code here or update the VTT src? |
hi Marc thanks. I can take the VTT src you provided, review the changes, and re-hint all necessary glyphs. This will a few days, probably will have the file ready by Friday 20th? does that sound ok. I will keep you updated if I run into any issues. |
That sounds great Mike. Thank you! |
hi Marc The re-hinting, testing, proofing, is completed. I want to do some further testing and proofing on the font tomorrow, before sharing. please find enclosed a report on the work completed. Please let me know how you would like me to share the updated VTT src with you tomorrow. thanks |
I opened a PR, Marc, please let me know if you get the file. I will follow up to ensure with you that the fixes correct the issue. Font hinting has been updated per the report I sent earlier. Font complies in VTT with no errors. Proofing and Hinting for all glyphs completed. additional proofing to ensure no other errors completed. |
thanks I had hinted 1553 in a slightly different way, as good, but the rounding is slightly different. If you want the same rounding behavior / positioning as before, you can use the following hints for GID 1553 (unia675) /* VTTTalk glyph 1553, char 0xa675 / /* Y direction */ /* X direction */ Smooth() |
code above is the VTT Talk, this is the compiled glyph program code for GID 1553, char 0xa675 /* TT glyph 1553, char 0xa675 / |
the font has been updated, and a new PR opened. Please let me know, if your testing can confirm all ok, and that the original problem has been addressed by this update. |
Thanks, I've just added the instructions you've posted above. I'll inspect the fonts once they've finished generating. |
Contour direction has been fixed for mark glyphs:
Fixes #86
@mikedug would you be willing to inspect the above glyphs in VTT? if so, I'll make you a src VTT font.