-
Notifications
You must be signed in to change notification settings - Fork 161
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
Hinting issues in CFF2 Variable Font #114
Comments
Hi, thank you for the report, I am aware of it. The construction you show indeed is the way in which Source Serif’s outlines are assembled (what is the difference between the left and the right example?). However, I don’t understand how the exact same y-coordinate is allowed to rasterize at different heights, so I would assume this being a rasterizer problem. It also depends a lot on the environment used (black on white/white on black, which browser). One additional variable might be that at the time of your report, you were most likely looking at an unhinted VF. If you check the page now (4.005 CFF2, hinted), do you see a difference? I will consider modifying the outlines if I get lots of feedback about this, but I am reluctant because it seems like an inconvenient workaround for a purely technical problem. Also the workload for this is big, because roughly 5000 glyphs would need to be changed. |
The 'bleeding' issue is not visible now, but a more important issue appeared. Letters are aligning to different baselines and you see letters with nonuniform size as shown below: I also took a full page screenshot of the site- https://i.imgur.com/fQVx6J1.png using site-shot.com and the issue is quickly noticeable. Are you aware of any existing bug report against the rasterizers about this issue? |
Huh, that’s interesting – thanks for sharing. Source Serif is (to my knowledge) the first hinted CFF2 font, so I am not surprised to see some odd rasterization behavior. “Party Baseline” is unexpected, though 🥳 Do you know which browser site-shot uses? (I poked around a bit, but couldn’t tell). Also, https://www.screenshotmachine.com shows the same result. |
There have been some other similar rasterization issues (with other fonts) when there are co-linear paths from overlapping elements. And I have seen some others (which I cannot find again ATM). Note: they talk about it being TTF-specific, but I think that it is probably really variable-specific (as compared to static OTFs and TTFs) because of the co-linear overlaps. It may also appear with static fonts with co-linear overlaps. So it does appear to be a rasterizer issue. |
Thanks for the link to those issues @kenmcd. It seems cascadia fixed this issue in the font by setting OVERLAP_COMPOUND flag in the glyph. |
@santhoshtr - we're trying to determine the scope of the baseline alignment problem. Can you clarify whether you've seen this in the browsers you list outside of the screen-shot tool you're using, or whether it's just in the tool? If it's not just in the tool, can you provide the version of Windows and of the browser? Thanks. |
To clarify, this question is about the second, baseline-related problem, not the initial bleed-through problem. |
|
I'm seeing the baseline alignment problem as well: I'll note that it seems to be more than just a problem with baseline alignment. Look at the "e" next to the "z" in the word "sizes" in the screenshot above. The "e" extends above and below the "z". Unfortunately, this version of the font is really unusable at the moment. Also, I would suggest either renaming this issue to reflect this new issue or perhaps move it to a new issue. Something so that it is easier for others to find the "baseline alignment issue" as opposed to the bleeding issue. |
Note that this problem (baseline alignment and unequal letter sizes) exists in version 4.5.0, but NOT in 4.4.0 with: |
@akrawitz This is expected. 4.005 is the first hinted release, while the CFF2 files for 4.004 are unhinted. |
The sample page https://adobe-fonts.github.io/source-serif/ when viewed(I am using latest Firefox, Chrome in latest Ubuntu) there is a visible pixel bleed as illustrated in the below image.
From my experiences, if we have nodes like this in the glyph outline, rasterization has above issue. Is this a known issue with the current state of variable fonts?
The text was updated successfully, but these errors were encountered: