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

Diffenator report Italics #16

Closed
vv-monsalve opened this issue Jan 21, 2021 · 14 comments
Closed

Diffenator report Italics #16

vv-monsalve opened this issue Jan 21, 2021 · 14 comments

Comments

@vv-monsalve
Copy link
Collaborator

vv-monsalve commented Jan 21, 2021

These are the main differences reported by Diffenator. Please review all of them and ensure everything is working as expected.

Black Italic
glyphs_modified

Bold Italic
glyphs_modified

SemiBold Italic
glyphs_modified

@vv-monsalve
Copy link
Collaborator Author

kerns_new

@vv-monsalve
Copy link
Collaborator Author

Although this was expected, please ensure there are all of the desired glyphs, 890 are reported as new.

glyphs_new

@arturschmal
Copy link
Member

@vv-monsalve Apart from the merging of the Arabic set into the italic source file, I can not explain the other differences as as nothing in the source files that affects this has been touched. Quite some of the characters reported seem to be the characters that have nested components. Could it be that the un-nesting in build.sh causes positional shifts?

@vv-monsalve
Copy link
Collaborator Author

Could it be that the un-nesting in build.sh causes positional shifts?

If after inspecting the source file it's confirmed nothing else has changed, then the two facts could be related.

It would be needed to run the build.sh without the -f flag to confirm.

@arturschmal
Copy link
Member

arturschmal commented Jan 28, 2021

I compared source files from master with source files in decompose-nested-transformed-components with MergeGlyphs and it shows only the changes that are known to me. So apart from outline and kerning issues that I fixed the source files are identical.

I ran build.sh without the -f flag and then ran gftools qa -f Kufam-BlackItalic.ttf -gfb -a -o qa.
There's still quite some characters indicated as different, but the shifting of the nested components before and after is not there anymore. So -f does seem to affect component positioning.

@simoncozens
Copy link

If there is a difference being caused by the -f flag, that would be a bug in ufo2ft. I'm happy to investigate but would need a bit more information.

If we can produce a small test case (just delete all irrelevant glyphs from the .glyphs file to leave one or two affected glyphs and the components they use), that would be helpful for debugging.

@vv-monsalve
Copy link
Collaborator Author

Thanks, Simon. I'm attaching a file with a few glyphs.
Kufam_few-glyphs.zip

@simoncozens
Copy link

I can't see a difference. :-/

I had to delete a few more glyphs to make the fonts compile (missing components, deleted glyphs referenced in features features, etc.) My version attached.

$ fontmake -g Kufam_few-glyphs.glyphs -o ttf; mv master_ttf/Kufam-BlackItalic.ttf master_ttf/Kufam-BlackItalic-NonFlat.ttf
$ fontmake -f -g Kufam_few-glyphs.glyphs -o ttf; mv master_ttf/Kufam-BlackItalic.ttf master_ttf/Kufam-BlackItalic-Flat.ttf
$ shape shape master_ttf/Kufam-BlackItalic-Flat.ttf 'Ẫ'
[uni1EAA=0+736]

shape

$ shape master_ttf/Kufam-BlackItalic-NonFlat.ttf 'Ẫ'
[uni1EAA=0+736]

shape
Kufam_few-glyphs-SC.zip

@arturschmal
Copy link
Member

Hi Simon, thanks for doing this test. There is a slight vertical shift visible of the accents. You can see that in the flat version the accent has shifted down, closer towards the cap height.

@simoncozens
Copy link

Yes, I see it now! Thanks! (Not a designer...)

Will investigate what’s happening. It’s obviously some ufo2ft thing.

@simoncozens
Copy link

OK, this is actually fixed in the ufo2ft master repository, but no releases have been made yet. If you want to run bleeding-edge ufo2ft, then add this to your requirements file:

git+https://github.com/googlefonts/ufo2ft

Also run pip3 install -U git+https://github.com/googlefonts/ufo2ft to use the latest version on your local computer.

@vv-monsalve
Copy link
Collaborator Author

Thanks! I'll try it and let you know

@vv-monsalve
Copy link
Collaborator Author

I've pulled the latest files on the repo at commit 5790686, installed the latest version of ufo2ft, created new fonts and performed new checks.
These are the new Diffenator reports for modified glyphs. For better comparison, here are the same images as in the previous comment

Black Italic
glyphs_modified

Bold Italic
glyphs_modified

SemiBold Italic
glyphs_modified

Despite they are reported as modified (probably for the flattened components) I don't see any difference now on them, so I would say the -f flag is working.

There are other changes reported but regarding other things, like me base glyphs in the GDEF, so I'll report them in other Issues or comments.

Also, I'm attaching here the complete Diffenator report folder so that @arturschmal can inspect it in detail.

qaKufam-Diffenator4.zip

@vv-monsalve vv-monsalve mentioned this issue Feb 3, 2021
3 tasks
@vv-monsalve
Copy link
Collaborator Author

Hi @arturschmal, this is the Diffenator report after pulling the latest files in the repo at commit d7d8753

Black Italic
glyphs_modified

Bold Italic
glyphs_modified

SemiBold
glyphs_modified

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

3 participants