gtk/testsuite/gsk/fonts/boxes.ttx
Matthias Clasen 42fc165b94 Add glyph hinting tests
Add tests that demonstrate different rendering with and without
hinting, to prove that hinting has an effect.
2024-03-02 18:41:06 -05:00

174 lines
4.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="4.49">
<GlyphOrder>
<!-- The 'id' attribute is only for humans; it is ignored when parsed. -->
<GlyphID id="0" name=".notdef"/>
<GlyphID id="1" name="A"/>
<GlyphID id="2" name="B"/>
<GlyphID id="3" name="C"/>
<GlyphID id="4" name="T"/>
</GlyphOrder>
<head>
<!-- Most of this table will be recalculated by the compiler -->
<tableVersion value="1.0"/>
<fontRevision value="1.1"/>
<checkSumAdjustment value="0xf8313291"/>
<magicNumber value="0x5f0f3cf5"/>
<flags value="00000000 00000010"/>
<unitsPerEm value="2048"/>
<created value="Tue Jan 9 00:00:00 2024"/>
<modified value="Tue Feb 27 19:20:30 2024"/>
<xMin value="0"/>
<yMin value="0"/>
<xMax value="1024"/>
<yMax value="1028"/>
<macStyle value="00000000 00000000"/>
<lowestRecPPEM value="1"/>
<fontDirectionHint value="2"/>
<indexToLocFormat value="0"/>
<glyphDataFormat value="0"/>
</head>
<hhea>
<tableVersion value="0x00010000"/>
<ascent value="2048"/>
<descent value="-1024"/>
<lineGap value="0"/>
<advanceWidthMax value="1024"/>
<minLeftSideBearing value="0"/>
<minRightSideBearing value="0"/>
<xMaxExtent value="1024"/>
<caretSlopeRise value="1"/>
<caretSlopeRun value="0"/>
<caretOffset value="0"/>
<reserved0 value="0"/>
<reserved1 value="0"/>
<reserved2 value="0"/>
<reserved3 value="0"/>
<metricDataFormat value="0"/>
<numberOfHMetrics value="1"/>
</hhea>
<maxp>
<!-- Most of this table will be recalculated by the compiler -->
<tableVersion value="0x10000"/>
<numGlyphs value="1"/>
<maxPoints value="4"/>
<maxContours value="1"/>
<maxCompositePoints value="0"/>
<maxCompositeContours value="0"/>
<maxZones value="1"/>
<maxTwilightPoints value="0"/>
<maxStorage value="0"/>
<maxFunctionDefs value="0"/>
<maxInstructionDefs value="0"/>
<maxStackElements value="0"/>
<maxSizeOfInstructions value="0"/>
<maxComponentElements value="0"/>
<maxComponentDepth value="0"/>
</maxp>
<hmtx>
<mtx name=".notdef" width="1024" lsb="0"/>
<mtx name="A" width="1024" lsb="0"/>
<mtx name="B" width="1056" lsb="0"/>
<mtx name="C" width="1024" lsb="0"/>
<mtx name="T" width="1024" lsb="0"/>
</hmtx>
<cmap>
<tableVersion version="0"/>
<cmap_format_4 platformID="0" platEncID="3" language="0">
<map code="0x20" name=".notdef"/>
<map code="0x41" name="A"/>
<map code="0x42" name="B"/>
<map code="0x43" name="C"/>
<map code="0x54" name="T"/>
</cmap_format_4>
</cmap>
<loca>
<!-- The 'loca' table will be calculated by the compiler -->
</loca>
<glyf>
<!-- The xMin, yMin, xMax and yMax values
will be recalculated by the compiler. -->
<TTGlyph name=".notdef" xMin="0" yMin="0" xMax="1024" yMax="1028">
<contour>
<pt x="0" y="0" on="1"/>
<pt x="1024" y="0" on="1"/>
<pt x="1024" y="1028" on="1"/>
<pt x="0" y="1028" on="1"/>
</contour>
<instructions/>
</TTGlyph>
<TTGlyph name="A" xMin="0" yMin="0" xMax="1024" yMax="1536">
<contour>
<pt x="0" y="0" on="1"/>
<pt x="1024" y="0" on="1"/>
<pt x="1024" y="1536" on="1"/>
<pt x="0" y="1536" on="1"/>
</contour>
<instructions/>
</TTGlyph>
<TTGlyph name="B" xMin="0" yMin="0" xMax="1056" yMax="1056">
<contour>
<pt x="0" y="0" on="1"/>
<pt x="1056" y="0" on="1"/>
<pt x="1056" y="1056" on="1"/>
<pt x="0" y="1056" on="1"/>
</contour>
<contour>
<pt x="128" y="128" on="1"/>
<pt x="128" y="896" on="1"/>
<pt x="896" y="896" on="1"/>
<pt x="896" y="128" on="1"/>
</contour>
<instructions/>
</TTGlyph>
<TTGlyph name="C" xMin="0" yMin="0" xMax="1024" yMax="1024">
<contour>
<pt x="0" y="0" on="1"/>
<pt x="1024" y="0" on="1"/>
<pt x="1024" y="1024" on="1"/>
<pt x="0" y="1024" on="1"/>
</contour>
<contour>
<pt x="128" y="128" on="1"/>
<pt x="128" y="896" on="1"/>
<pt x="896" y="896" on="1"/>
<pt x="896" y="128" on="1"/>
</contour>
<instructions/>
</TTGlyph>
<TTGlyph name="T" xMin="0" yMin="0" xMax="1024" yMax="1024">
<contour>
<pt x="0" y="0" on="1"/>
<pt x="1024" y="0" on="1"/>
<pt x="1024" y="1024" on="1"/>
<pt x="0" y="1024" on="1"/>
</contour>
<contour>
<pt x="128" y="128" on="1"/>
<pt x="128" y="896" on="1"/>
<pt x="896" y="896" on="1"/>
<pt x="896" y="128" on="1"/>
</contour>
<instructions/>
</TTGlyph>
</glyf>
<name>
<namerecord nameID="1" platformID="1" platEncID="0" langID="0x0" unicode="True">
boxes
</namerecord>
</name>
</ttFont>