diff options
Diffstat (limited to 'tests/data/WeightEqualsEmVariableFont.ttx')
-rw-r--r-- | tests/data/WeightEqualsEmVariableFont.ttx | 282 |
1 files changed, 282 insertions, 0 deletions
diff --git a/tests/data/WeightEqualsEmVariableFont.ttx b/tests/data/WeightEqualsEmVariableFont.ttx new file mode 100644 index 0000000..86d7477 --- /dev/null +++ b/tests/data/WeightEqualsEmVariableFont.ttx @@ -0,0 +1,282 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Copyright (C) 2018 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="3.0"> + + <GlyphOrder> + <GlyphID id="0" name=".notdef"/> + <GlyphID id="1" name="1em"/> + </GlyphOrder> + + <head> + <tableVersion value="1.0"/> + <fontRevision value="1.0"/> + <checkSumAdjustment value="0x640cdb2f"/> + <magicNumber value="0x5f0f3cf5"/> + <flags value="00000000 00000011"/> + <unitsPerEm value="100"/> + <created value="Thu Feb 22 10:04:28 2018"/> + <macStyle value="00000000 00000000"/> + <lowestRecPPEM value="7"/> + <fontDirectionHint value="2"/> + <glyphDataFormat value="0"/> + </head> + + <hhea> + <tableVersion value="0x00010000"/> + <ascent value="100"/> + <descent value="0"/> + <lineGap value="0"/> + <caretSlopeRise value="1"/> + <caretSlopeRun value="0"/> + <caretOffset value="0"/> + <reserved0 value="0"/> + <reserved1 value="0"/> + <reserved2 value="0"/> + <reserved3 value="0"/> + <metricDataFormat value="0"/> + </hhea> + + <maxp> + <tableVersion value="0x10000"/> + <maxZones value="0"/> + <maxTwilightPoints value="0"/> + <maxStorage value="0"/> + <maxFunctionDefs value="0"/> + <maxInstructionDefs value="0"/> + <maxStackElements value="0"/> + <maxSizeOfInstructions value="0"/> + <maxComponentElements value="0"/> + </maxp> + + <OS_2> + <!-- The fields 'usFirstCharIndex' and 'usLastCharIndex' + will be recalculated by the compiler --> + <version value="3"/> + <xAvgCharWidth value="594"/> + <usWeightClass value="100"/> + <usWidthClass value="5"/> + <fsType value="00000000 00001000"/> + <ySubscriptXSize value="650"/> + <ySubscriptYSize value="600"/> + <ySubscriptXOffset value="0"/> + <ySubscriptYOffset value="75"/> + <ySuperscriptXSize value="650"/> + <ySuperscriptYSize value="600"/> + <ySuperscriptXOffset value="0"/> + <ySuperscriptYOffset value="350"/> + <yStrikeoutSize value="50"/> + <yStrikeoutPosition value="300"/> + <sFamilyClass value="0"/> + <panose> + <bFamilyType value="0"/> + <bSerifStyle value="0"/> + <bWeight value="5"/> + <bProportion value="0"/> + <bContrast value="0"/> + <bStrokeVariation value="0"/> + <bArmStyle value="0"/> + <bLetterForm value="0"/> + <bMidline value="0"/> + <bXHeight value="0"/> + </panose> + <ulUnicodeRange1 value="00000000 00000000 00000000 00000001"/> + <ulUnicodeRange2 value="00000000 00000000 00000000 00000000"/> + <ulUnicodeRange3 value="00000000 00000000 00000000 00000000"/> + <ulUnicodeRange4 value="00000000 00000000 00000000 00000000"/> + <achVendID value="UKWN"/> + <fsSelection value="00000000 01000000"/> + <usFirstCharIndex value="32"/> + <usLastCharIndex value="122"/> + <sTypoAscender value="800"/> + <sTypoDescender value="-200"/> + <sTypoLineGap value="200"/> + <usWinAscent value="1000"/> + <usWinDescent value="200"/> + <ulCodePageRange1 value="00000000 00000000 00000000 00000001"/> + <ulCodePageRange2 value="00000000 00000000 00000000 00000000"/> + <sxHeight value="500"/> + <sCapHeight value="700"/> + <usDefaultChar value="0"/> + <usBreakChar value="32"/> + <usMaxContext value="0"/> + </OS_2> + + <hmtx> + <mtx name=".notdef" width="50" lsb="93"/> + <mtx name="1em" width="0" lsb="0"/> + </hmtx> + + <cmap> + <tableVersion version="0"/> + <cmap_format_4 platformID="0" platEncID="3" language="0"> + <map code="0x0061" name="1em" /> <!-- a --> + <map code="0x0062" name="1em" /> <!-- b --> + <map code="0x0063" name="1em" /> <!-- c --> + <map code="0x0064" name="1em" /> <!-- d --> + <map code="0x0065" name="1em" /> <!-- e --> + <map code="0x0066" name="1em" /> <!-- f --> + <map code="0x0067" name="1em" /> <!-- g --> + <map code="0x0068" name="1em" /> <!-- h --> + <map code="0x0069" name="1em" /> <!-- i --> + <map code="0x006A" name="1em" /> <!-- j --> + <map code="0x006B" name="1em" /> <!-- k --> + <map code="0x006C" name="1em" /> <!-- l --> + <map code="0x006D" name="1em" /> <!-- m --> + <map code="0x006E" name="1em" /> <!-- n --> + <map code="0x006F" name="1em" /> <!-- o --> + <map code="0x0070" name="1em" /> <!-- p --> + <map code="0x0071" name="1em" /> <!-- q --> + <map code="0x0072" name="1em" /> <!-- r --> + <map code="0x0073" name="1em" /> <!-- s --> + <map code="0x0074" name="1em" /> <!-- t --> + <map code="0x0075" name="1em" /> <!-- u --> + <map code="0x0076" name="1em" /> <!-- v --> + <map code="0x0077" name="1em" /> <!-- w --> + <map code="0x0078" name="1em" /> <!-- x --> + <map code="0x0079" name="1em" /> <!-- y --> + <map code="0x007A" name="1em" /> <!-- z --> + </cmap_format_4> + </cmap> + + <loca> + <!-- The 'loca' table will be calculated by the compiler --> + </loca> + + <glyf> + <TTGlyph name=".notdef" xMin="0" yMin="0" xMax="0" yMax="0" /> + <TTGlyph name="1em" xMin="0" yMin="0" xMax="100" yMax="100"> + <contour> + <pt x="0" y="0" on="1"/> + <pt x="0" y="50" on="1"/> + <pt x="0" y="100" on="1"/> + </contour> + <instructions /> + </TTGlyph> + </glyf> + + <HVAR> + <Version value="0x00010000"/> + <VarStore Format="1"> + <Format value="1" /> + <VarRegionList> + <Region index="0"> + <VarRegionAxis index="0"> + <StartCoord value="0" /> + <PeakCoord value="1.0" /> + <EndCoord value="1.0" /> + </VarRegionAxis> + <VarRegionAxis index="1"> + <StartCoord value="0" /> + <PeakCoord value="1.0" /> + <EndCoord value="1.0" /> + </VarRegionAxis> + </Region> + </VarRegionList> + <VarData index="0"> + <NumShorts value="0" /> + <VarRegionIndex index="0" value="0" /> + <Item index="0" value="[100]" /> + </VarData> + </VarStore> + <AdvWidthMap> + <Map glyph=".notdef" outer="0" inner="0" /> + <Map glyph="1em" outer="0" inner="0" /> + </AdvWidthMap> + </HVAR> + + <fvar> + <Axis> + <AxisTag>wght</AxisTag> + <Flags>0x0</Flags> + <MinValue>0.0</MinValue> + <DefaultValue>400.0</DefaultValue> + <MaxValue>1000.0</MaxValue> + <AxisNameID>256</AxisNameID> + </Axis> + <Axis> + <AxisTag>ital</AxisTag> + <Flags>0x0</Flags> + <MinValue>0.0</MinValue> + <DefaultValue>0.0</DefaultValue> + <MaxValue>1.0</MaxValue> + <AxisNameID>256</AxisNameID> + </Axis> + </fvar> + + <gvar> + <version value="1" /> + <reserved value="0" /> + <glyphVariations glyph="1em"> + <tuple> + <coord axis="wght" value="1.0" /> + <delta pt="0" x="0" y="0" /> + <delta pt="1" x="100" y="0" /> + <delta pt="2" x="0" y="0" /> + <!-- deltas for phantom points --> + <delta pt="3" x="0" y="0" /> <!-- (left, 0) --> + <delta pt="4" x="100" y="0" /> <!-- (right, 0) --> + <delta pt="5" x="0" y="0" /> <!-- (0, top) --> + <delta pt="6" x="0" y="0" /> <!-- (0, bottom) --> + </tuple> + </glyphVariations> + </gvar> + + <name> + <namerecord nameID="0" platformID="3" platEncID="1" langID="0x409"> + Copyright (C) 2018 The Android Open Source Project + </namerecord> + <namerecord nameID="1" platformID="3" platEncID="1" langID="0x409"> + Sample Font + </namerecord> + <namerecord nameID="2" platformID="3" platEncID="1" langID="0x409"> + Regular + </namerecord> + <namerecord nameID="4" platformID="3" platEncID="1" langID="0x409"> + Sample Font + </namerecord> + <namerecord nameID="6" platformID="3" platEncID="1" langID="0x409"> + SampleFont-Regular + </namerecord> + <namerecord nameID="13" platformID="3" platEncID="1" langID="0x409"> + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + </namerecord> + <namerecord nameID="14" platformID="3" platEncID="1" langID="0x409"> + http://www.apache.org/licenses/LICENSE-2.0 + </namerecord> + <namerecord nameID="256" platformID="3" platEncID="1" langID="0x409"> + Weight + </namerecord> + </name> + + <post> + <formatType value="3.0"/> + <italicAngle value="0.0"/> + <underlinePosition value="-75"/> + <underlineThickness value="50"/> + <isFixedPitch value="0"/> + <minMemType42 value="0"/> + <maxMemType42 value="0"/> + <minMemType1 value="0"/> + <maxMemType1 value="0"/> + </post> + +</ttFont> |