testsuite: Add unaligned-offscreen test

Tests whether text rendered to an offscreen node unaligned with the
pixel grid introduces blurriness.
This commit is contained in:
Sebastian Keller 2022-04-04 22:55:16 +02:00 committed by Matthias Clasen
parent f1d44635bd
commit d56276f6d6
3 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,23 @@
blend {
mode: normal;
top: transform {
child: blend {
top: text {
color: rgb(0, 0, 0);
font: "Cantarell Bold 11";
glyphs: "|||||||||||||||||||||||";
}
bottom: text {
color: rgb(0, 0, 0);
font: "Cantarell Bold 11";
glyphs: "===========";
offset: 0 13;
}
}
transform: translate(1.5, 15.5);
}
bottom: color {
color: red;
bounds: 0 0 100 30;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 B

View File

@ -83,6 +83,7 @@ compare_render_tests = [
'repeat-texture',
'transform-in-transform',
'transform-in-transform-in-transform',
'unaligned-offscreen',
'rounded-clip-in-clip-3d', # not really 3d, but cairo fails it
]