Add another font rendering test

This one tests that we handle glyphs with lsb correctly wrt. to
positioning.
This commit is contained in:
Matthias Clasen 2024-01-13 17:45:34 -05:00
parent 1fd9e1e916
commit b78d2a7f75
5 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,4 @@
text {
font: "text-mixed-color 30";
glyphs: 1 40, 1 40, 8 40, 1 40;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 B

View File

@ -11,6 +11,7 @@
<GlyphID id="5" name="E"/>
<GlyphID id="6" name="F"/>
<GlyphID id="7" name="G"/>
<GlyphID id="8" name="H"/>
</GlyphOrder>
<head>
@ -82,12 +83,13 @@
<mtx name="E" width="1024" lsb="0"/>
<mtx name="F" width="1024" lsb="0"/>
<mtx name="G" width="1024" lsb="0"/>
<mtx name="H" width="1024" lsb="256" rsb="256"/>
</hmtx>
<loca>
</loca>
<glyf> <!-- Will result in empty table -->
<glyf>
<TTGlyph name=".notdef"/>
<TTGlyph name="A">
<contour>
@ -158,6 +160,15 @@
</contour>
<instructions><assembly></assembly></instructions>
</TTGlyph>
<TTGlyph name="H">
<contour>
<pt x="256" y="0" on="1"/>
<pt x="768" y="0" on="1"/>
<pt x="768" y="2048" on="1"/>
<pt x="256" y="2048" on="1"/>
</contour>
<instructions><assembly></assembly></instructions>
</TTGlyph>
</glyf>
<COLR>
@ -200,6 +211,7 @@
<map code="0x45" name="E"/>
<map code="0x46" name="F"/>
<map code="0x47" name="G"/>
<map code="0x48" name="H"/>
</cmap_format_4>
</cmap>

View File

@ -136,6 +136,7 @@ compare_render_tests = [
'stroke-fractional-translate-nogl',
'stroke-opacity',
'stroke-with-3d-contents-nogl-nocairo',
'text-glyph-lsb',
'text-mixed-color-nocairo',
'text-mixed-color-colrv1',
'texture-coords',