The FreeType Project - Bugs: bug #56601, Odd behavior with variable hinted...
You are not allowed to post comments on this tracker with your current authentication level.
bug #56601: Odd behavior with variable hinted font.
Submitter: | bungeman <bungeman> | ||
Submitted: | Tue 09 Jul 2019 04:17:55 PM UTC | ||
Severity: | 3 - Normal | Item Group: | None |
Status: | Fixed | Privacy: | Public |
Assigned to: | wl | Open/Closed: | Closed |
Planned Release: | 2.10.2 |
Jump to the original submission
Fri 12 Jul 2019 08:55:27 AM UTC, comment #6: |
Werner LEMBERG <wl> |
Thu 11 Jul 2019 06:41:02 PM UTC, comment #5: Thank you for the analysis and the fix. |
Alexei Podtelezhnikov <podtelez> |
Wed 10 Jul 2019 04:02:05 PM UTC, comment #4: This issue affects FreeType versions 2.9 to current 2.10.1, and started with the two related FreeType commits e7935f2910 and d062c54ce7. These commits fixed other issues, but appear to have introduced this one. |
bungeman <bungeman> |
Wed 10 Jul 2019 02:25:43 PM UTC, comment #3: Attaching hvar_vvar_hinted_scale.diff with a possible patch for this issue. This patch ensures that the phantom points are always assigned scaled values in all cases.
|
bungeman <bungeman> |
Wed 10 Jul 2019 04:27:50 AM UTC, comment #2: It appears that in TT_Process_Simple_Glyph the phantom points on the loader are not scaled (when using HVAR/VVAR values. The phantom points in the outline->points are scaled, but when these are not assigned back to the loader the loader continues to have unscaled (funit) values for the phantom points. Scaling these values directly when they will not be assigned from the outline->points phantom points seems like the right way to fix this. |
bungeman <bungeman> |
Tue 09 Jul 2019 10:36:01 PM UTC, comment #1: I ran ftgrid with FT2_DEBUG="ttgload:2 ttinterp:7" on glyph 1 ('A') and skimming through here I don't see that the horizontal phantom points (11 or 12 for this glyph) are ever touched directly by the bytecode hinting (it appears the bytecode hinting in this font is trying to act only in the y direction). As a result, I suppose they should remain unchanged. Indeed, if I run ftgrid with ttgload:7 and hit 'H' to toggle the hinting engine between v35 and v40 I get the same output for the advances each time, however, these advances appear to be output before any processing.
|
bungeman <bungeman> |
Tue 09 Jul 2019 04:17:55 PM UTC, original submission:
If I take the font 'Oswald' [0] (which is a hinted variable font, available from Google Fonts) convert it to ttf (attached), open it in ftview (with current tip of tree FreeType) like
|
bungeman <bungeman> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 7 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2019-07-12 | wl | Status | None | Fixed | |
Assigned to | None | wl | |||
Open/Closed | Open | Closed | |||
Planned Release | None | 2.10.2 | |||
2019-07-10 | bungeman | Attached File | - | Added hvar_vvar_hinted_scale.diff, #47189 | |
2019-07-09 | bungeman | Attached File | - | Added trace_pp2.diff, #47182 | |
2019-07-09 | bungeman | Attached File | - | Added TK3iWkUHHAIjg752GT8G.ttf, #47176 |
Powered by Savane 3.13-02a9.
Corresponding source code
Yeah, thanks a lot! Patch applied (with slight modifications).