mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
gsk: Add test for clipped big glyphs
Tests the fix in the previous commit 93715b963e
.
Sadly, the flipped variant of this test fails with the cairo
renderer, so it is marked as -nocairo. All the other renderers
pass it.
This commit is contained in:
parent
93715b963e
commit
9f4f65be4a
7
testsuite/gsk/compare/big-box-glyph-nocairo.node
Normal file
7
testsuite/gsk/compare/big-box-glyph-nocairo.node
Normal file
@ -0,0 +1,7 @@
|
||||
transform {
|
||||
transform: scale(30);
|
||||
child: text {
|
||||
font: "text-mixed-color 7.5";
|
||||
glyphs: 7 10;
|
||||
}
|
||||
}
|
BIN
testsuite/gsk/compare/big-box-glyph-nocairo.png
Normal file
BIN
testsuite/gsk/compare/big-box-glyph-nocairo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1002 B |
Binary file not shown.
@ -10,6 +10,7 @@
|
||||
<GlyphID id="4" name="D"/>
|
||||
<GlyphID id="5" name="E"/>
|
||||
<GlyphID id="6" name="F"/>
|
||||
<GlyphID id="7" name="G"/>
|
||||
</GlyphOrder>
|
||||
|
||||
<head>
|
||||
@ -80,6 +81,7 @@
|
||||
<mtx name="D" width="1024" lsb="0"/>
|
||||
<mtx name="E" width="1024" lsb="0"/>
|
||||
<mtx name="F" width="1024" lsb="0"/>
|
||||
<mtx name="G" width="1024" lsb="0"/>
|
||||
</hmtx>
|
||||
|
||||
<loca>
|
||||
@ -141,6 +143,21 @@
|
||||
</contour>
|
||||
<instructions><assembly></assembly></instructions>
|
||||
</TTGlyph>
|
||||
<TTGlyph name="G">
|
||||
<contour>
|
||||
<pt x="0" y="0" on="1"/>
|
||||
<pt x="1024" y="0" on="1"/>
|
||||
<pt x="1024" y="2048" on="1"/>
|
||||
<pt x="0" y="2048" on="1"/>
|
||||
</contour>
|
||||
<contour>
|
||||
<pt x="5" y="5" on="1"/>
|
||||
<pt x="5" y="2043" on="1"/>
|
||||
<pt x="1019" y="2043" on="1"/>
|
||||
<pt x="1019" y="5" on="1"/>
|
||||
</contour>
|
||||
<instructions><assembly></assembly></instructions>
|
||||
</TTGlyph>
|
||||
</glyf>
|
||||
|
||||
<COLR>
|
||||
@ -182,6 +199,7 @@
|
||||
<map code="0x44" name="D"/>
|
||||
<map code="0x45" name="E"/>
|
||||
<map code="0x46" name="F"/>
|
||||
<map code="0x47" name="G"/>
|
||||
</cmap_format_4>
|
||||
</cmap>
|
||||
|
||||
|
@ -10,6 +10,7 @@ node_parser = executable('node-parser', 'node-parser.c',
|
||||
)
|
||||
|
||||
compare_render_tests = [
|
||||
'big-box-glyph-nocairo',
|
||||
'big-checkerboard',
|
||||
'big-checkerboard-scaled-down',
|
||||
'big-checkerboard-scaled-down-nearest',
|
||||
|
Loading…
Reference in New Issue
Block a user