-
Notifications
You must be signed in to change notification settings - Fork 9
Fix COLRv1 sweeps modulo and paint clipping #241
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
Merged
justvanrossum
merged 6 commits into
fontra:main
from
hybridherbst:feature/better-colorv1-sweeps-and-clip
May 18, 2026
Merged
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ecf87f0
Fix COLRv1 sweep drawing turn sampling
hybridherbst 0c4954f
Apply COLRv1 ClipBox during glyph drawing
hybridherbst bbaebf0
Add COLRv1 edge case render goldens
hybridherbst 3231013
Fix CoreGraphics sweep alpha compositing
hybridherbst f32f991
Add overlapping radial alpha regression font
hybridherbst 610a946
Use CoreGraphics conic gradients for sweeps
hybridherbst File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-1.26 KB
(77%)
Tests/expectedOutput/glyph_test_glyphs_clip_box_bottom_left_cairo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.87 KB
(72%)
Tests/expectedOutput/glyph_test_glyphs_clip_box_bottom_left_coregraphics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.66 KB
(72%)
Tests/expectedOutput/glyph_test_glyphs_clip_box_bottom_left_skia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.36 KB
(73%)
Tests/expectedOutput/glyph_test_glyphs_clip_box_bottom_right_cairo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-4.13 KB
(67%)
Tests/expectedOutput/glyph_test_glyphs_clip_box_bottom_right_coregraphics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.63 KB
(69%)
Tests/expectedOutput/glyph_test_glyphs_clip_box_bottom_right_skia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+526 Bytes
(110%)
Tests/expectedOutput/glyph_test_glyphs_clip_box_center_cairo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-74 Bytes
(99%)
Tests/expectedOutput/glyph_test_glyphs_clip_box_center_coregraphics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+5 Bytes
(100%)
Tests/expectedOutput/glyph_test_glyphs_clip_box_center_skia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.63 KB
(74%)
Tests/expectedOutput/glyph_test_glyphs_clip_box_top_left_cairo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.38 KB
(70%)
Tests/expectedOutput/glyph_test_glyphs_clip_box_top_left_coregraphics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.05 KB
(70%)
Tests/expectedOutput/glyph_test_glyphs_clip_box_top_left_skia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.09 KB
(78%)
Tests/expectedOutput/glyph_test_glyphs_clip_box_top_right_cairo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.4 KB
(72%)
Tests/expectedOutput/glyph_test_glyphs_clip_box_top_right_coregraphics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.33 KB
(74%)
Tests/expectedOutput/glyph_test_glyphs_clip_box_top_right_skia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.73 KB
Tests/expectedOutput/glyph_test_glyphs_composite_CLEAR_coregraphics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions
15
Tests/expectedOutput/glyph_test_glyphs_composite_CLEAR_svg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.4 KB
Tests/expectedOutput/glyph_test_glyphs_foreground_color_sweep_alpha_0.3_cairo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32 KB
...ectedOutput/glyph_test_glyphs_foreground_color_sweep_alpha_0.3_coregraphics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.7 KB
Tests/expectedOutput/glyph_test_glyphs_foreground_color_sweep_alpha_0.3_skia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions
7
Tests/expectedOutput/glyph_test_glyphs_foreground_color_sweep_alpha_0.3_svg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.3 KB
...expectedOutput/glyph_test_glyphs_sweep_0_360_pad_wide_sweepRegression_cairo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21.2 KB
...dOutput/glyph_test_glyphs_sweep_0_360_pad_wide_sweepRegression_coregraphics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13 KB
.../expectedOutput/glyph_test_glyphs_sweep_0_360_pad_wide_sweepRegression_skia.png
Oops, something went wrong.
Binary file added
BIN
+22.7 KB
Tests/expectedOutput/glyph_test_glyphs_sweep_45_90_repeat_narrow_cairo.png
Oops, something went wrong.
Binary file added
BIN
+27.1 KB
Tests/expectedOutput/glyph_test_glyphs_sweep_45_90_repeat_narrow_coregraphics.png
Oops, something went wrong.
Binary file added
BIN
+36.9 KB
Tests/expectedOutput/glyph_test_glyphs_sweep_45_90_repeat_narrow_skia.png
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
Tests/expectedOutput/glyph_test_glyphs_sweep_45_90_repeat_narrow_svg.svg
Oops, something went wrong.
Binary file added
BIN
+18.8 KB
...tedOutput/glyph_test_glyphs_sweep_60_300_reflect_wide_sweepRegression_cairo.png
Oops, something went wrong.
Binary file added
BIN
+24 KB
...ut/glyph_test_glyphs_sweep_60_300_reflect_wide_sweepRegression_coregraphics.png
Oops, something went wrong.
Binary file added
BIN
+15.3 KB
...ctedOutput/glyph_test_glyphs_sweep_60_300_reflect_wide_sweepRegression_skia.png
Oops, something went wrong.
Binary file added
BIN
+23.2 KB
Tests/expectedOutput/glyph_test_glyphs_sweep_90_45_reflect_narrow_cairo.png
Oops, something went wrong.
Binary file added
BIN
+26.8 KB
Tests/expectedOutput/glyph_test_glyphs_sweep_90_45_reflect_narrow_coregraphics.png
Oops, something went wrong.
Binary file added
BIN
+36.2 KB
Tests/expectedOutput/glyph_test_glyphs_sweep_90_45_reflect_narrow_skia.png
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
Tests/expectedOutput/glyph_test_glyphs_sweep_90_45_reflect_narrow_svg.svg
Oops, something went wrong.
Binary file added
BIN
+21.8 KB
...ctedOutput/glyph_test_glyphs_sweep_90_45_reflect_wide_sweepRegression_cairo.png
Oops, something went wrong.
Binary file added
BIN
+27.5 KB
...put/glyph_test_glyphs_sweep_90_45_reflect_wide_sweepRegression_coregraphics.png
Oops, something went wrong.
Binary file added
BIN
+24.4 KB
...ectedOutput/glyph_test_glyphs_sweep_90_45_reflect_wide_sweepRegression_skia.png
Oops, something went wrong.
Binary file added
BIN
+3.67 KB
...t_glyphs_sweep_coincident_angles_forward_blue_red_pad_sweepRegression_cairo.png
Oops, something went wrong.
Binary file added
BIN
+4.85 KB
...s_sweep_coincident_angles_forward_blue_red_pad_sweepRegression_coregraphics.png
Oops, something went wrong.
Binary file added
BIN
+3.45 KB
...st_glyphs_sweep_coincident_angles_forward_blue_red_pad_sweepRegression_skia.png
Oops, something went wrong.
Binary file added
BIN
+339 Bytes
...lyphs_sweep_coincident_angles_forward_blue_red_repeat_sweepRegression_cairo.png
Oops, something went wrong.
Binary file added
BIN
+1.23 KB
...weep_coincident_angles_forward_blue_red_repeat_sweepRegression_coregraphics.png
Oops, something went wrong.
Binary file added
BIN
+337 Bytes
...glyphs_sweep_coincident_angles_forward_blue_red_repeat_sweepRegression_skia.png
Oops, something went wrong.
Binary file added
BIN
+339 Bytes
.../glyph_test_glyphs_sweep_coincident_angles_forward_linen_gray_reflect_cairo.png
Oops, something went wrong.
Binary file added
BIN
+1.23 KB
...test_glyphs_sweep_coincident_angles_forward_linen_gray_reflect_coregraphics.png
Oops, something went wrong.
Binary file added
BIN
+337 Bytes
...t/glyph_test_glyphs_sweep_coincident_angles_forward_linen_gray_reflect_skia.png
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
...ut/glyph_test_glyphs_sweep_coincident_angles_forward_linen_gray_reflect_svg.svg
Oops, something went wrong.
Binary file added
BIN
+3.71 KB
...st_glyphs_sweep_coincident_stops_forward_blue_red_pad_sweepRegression_cairo.png
Oops, something went wrong.
Binary file added
BIN
+4.85 KB
...hs_sweep_coincident_stops_forward_blue_red_pad_sweepRegression_coregraphics.png
Oops, something went wrong.
Binary file added
BIN
+3.48 KB
...est_glyphs_sweep_coincident_stops_forward_blue_red_pad_sweepRegression_skia.png
Oops, something went wrong.
Binary file added
BIN
+339 Bytes
...glyphs_sweep_coincident_stops_forward_blue_red_repeat_sweepRegression_cairo.png
Oops, something went wrong.
Binary file added
BIN
+1.23 KB
...sweep_coincident_stops_forward_blue_red_repeat_sweepRegression_coregraphics.png
Oops, something went wrong.
Binary file added
BIN
+337 Bytes
..._glyphs_sweep_coincident_stops_forward_blue_red_repeat_sweepRegression_skia.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.