-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Wakamai-Fondue/exampletext
Return a font's example text
- Loading branch information
Showing
6 changed files
with
254 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# WFTestFont | ||
|
||
A versatile test font for Wakamai Fondue, created by Roel Nieskens. | ||
|
||
Make changes in the .ttx file, [compile](https://github.com/fonttools/fonttools) to .ttf so it can be used in Wakamai Fondue's tests: | ||
|
||
```bash | ||
$ ttx -o WFTestFont.ttf WFTestFont.ttx | ||
``` | ||
|
||
## What can this font do? | ||
|
||
- It has TrueType outlines (`glyf`) | ||
- It has a `.notdef` character | ||
- It has an `A` character | ||
- Name table entries: | ||
Font Family: WFTest | ||
Font Subfamily: Regular | ||
Unique Font Identifier: WFTest | ||
Font Name: WFTest | ||
Version String: Version 1.0 | ||
PostScript Name: WFTest | ||
Sample text: Wakamai Fondue rules! |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,204 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="4.12"> | ||
|
||
<GlyphOrder> | ||
<!-- The 'id' attribute is only for humans; it is ignored when parsed. --> | ||
<GlyphID id="0" name=".notdef"/> | ||
<GlyphID id="1" name="A"/> | ||
</GlyphOrder> | ||
|
||
<head> | ||
<!-- Most of this table will be recalculated by the compiler --> | ||
<tableVersion value="1.0"/> | ||
<fontRevision value="1.0"/> | ||
<checkSumAdjustment value="0xc8ef8923"/> | ||
<magicNumber value="0x5f0f3cf5"/> | ||
<flags value="00000000 00001011"/> | ||
<unitsPerEm value="512"/> | ||
<created value="Wed Aug 26 09:42:14 2020"/> | ||
<modified value="Wed Aug 26 09:48:41 2020"/> | ||
<xMin value="0"/> | ||
<yMin value="0"/> | ||
<xMax value="512"/> | ||
<yMax value="512"/> | ||
<macStyle value="00000000 00000000"/> | ||
<lowestRecPPEM value="8"/> | ||
<fontDirectionHint value="2"/> | ||
<indexToLocFormat value="0"/> | ||
<glyphDataFormat value="0"/> | ||
</head> | ||
|
||
<hhea> | ||
<tableVersion value="0x00010000"/> | ||
<ascent value="512"/> | ||
<descent value="0"/> | ||
<lineGap value="0"/> | ||
<advanceWidthMax value="512"/> | ||
<minLeftSideBearing value="0"/> | ||
<minRightSideBearing value="0"/> | ||
<xMaxExtent value="512"/> | ||
<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="2"/> | ||
<maxPoints value="4"/> | ||
<maxContours value="1"/> | ||
<maxCompositePoints value="0"/> | ||
<maxCompositeContours value="0"/> | ||
<maxZones value="2"/> | ||
<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> | ||
|
||
<OS_2> | ||
<!-- The fields 'usFirstCharIndex' and 'usLastCharIndex' | ||
will be recalculated by the compiler --> | ||
<version value="3"/> | ||
<xAvgCharWidth value="512"/> | ||
<usWeightClass value="400"/> | ||
<usWidthClass value="5"/> | ||
<fsType value="00000000 00000000"/> | ||
<ySubscriptXSize value="332"/> | ||
<ySubscriptYSize value="358"/> | ||
<ySubscriptXOffset value="0"/> | ||
<ySubscriptYOffset value="71"/> | ||
<ySuperscriptXSize value="332"/> | ||
<ySuperscriptYSize value="358"/> | ||
<ySuperscriptXOffset value="0"/> | ||
<ySuperscriptYOffset value="245"/> | ||
<yStrikeoutSize value="25"/> | ||
<yStrikeoutPosition value="132"/> | ||
<sFamilyClass value="0"/> | ||
<panose> | ||
<bFamilyType value="0"/> | ||
<bSerifStyle value="0"/> | ||
<bWeight value="0"/> | ||
<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 00000000"/> | ||
<ulUnicodeRange2 value="00010000 00000000 00000000 00000000"/> | ||
<ulUnicodeRange3 value="00000000 00000000 00000000 00000000"/> | ||
<ulUnicodeRange4 value="00000000 00000000 00000000 00000000"/> | ||
<achVendID value="\x00\x00\x00\x00"/> | ||
<fsSelection value="00000000 01000000"/> | ||
<usFirstCharIndex value="65"/> | ||
<usLastCharIndex value="65"/> | ||
<sTypoAscender value="512"/> | ||
<sTypoDescender value="0"/> | ||
<sTypoLineGap value="0"/> | ||
<usWinAscent value="512"/> | ||
<usWinDescent value="0"/> | ||
<ulCodePageRange1 value="00000000 00000000 00000000 00000001"/> | ||
<ulCodePageRange2 value="00000000 00000000 00000000 00000000"/> | ||
<sxHeight value="0"/> | ||
<sCapHeight value="0"/> | ||
<usDefaultChar value="0"/> | ||
<usBreakChar value="32"/> | ||
<usMaxContext value="0"/> | ||
</OS_2> | ||
|
||
<hmtx> | ||
<mtx name=".notdef" width="512" lsb="0"/> | ||
<mtx name="A" width="512" lsb="0"/> | ||
</hmtx> | ||
|
||
<cmap> | ||
<tableVersion version="0"/> | ||
<cmap_format_4 platformID="0" platEncID="3" language="0"> | ||
<map code="0x41" name="A"/><!-- LATIN CAPITAL LETTER A --> | ||
</cmap_format_4> | ||
<cmap_format_4 platformID="3" platEncID="1" language="0"> | ||
<map code="0x41" name="A"/><!-- LATIN CAPITAL LETTER A --> | ||
</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"/><!-- contains no outline data --> | ||
|
||
<TTGlyph name="A" xMin="0" yMin="0" xMax="512" yMax="512"> | ||
<contour> | ||
<pt x="0" y="512" on="1"/> | ||
<pt x="512" y="512" on="1"/> | ||
<pt x="512" y="0" on="1"/> | ||
<pt x="0" y="0" on="1"/> | ||
</contour> | ||
<instructions/> | ||
</TTGlyph> | ||
|
||
</glyf> | ||
|
||
<name> | ||
<namerecord nameID="1" platformID="3" platEncID="1" langID="0x409"> | ||
WFTestFont | ||
</namerecord> | ||
<namerecord nameID="2" platformID="3" platEncID="1" langID="0x409"> | ||
Regular | ||
</namerecord> | ||
<namerecord nameID="3" platformID="3" platEncID="1" langID="0x409"> | ||
WFTestFont | ||
</namerecord> | ||
<namerecord nameID="4" platformID="3" platEncID="1" langID="0x409"> | ||
WFTestFont | ||
</namerecord> | ||
<namerecord nameID="5" platformID="3" platEncID="1" langID="0x409"> | ||
Version 1.0 | ||
</namerecord> | ||
<namerecord nameID="6" platformID="3" platEncID="1" langID="0x409"> | ||
WFTestFont | ||
</namerecord> | ||
<namerecord nameID="6" platformID="3" platEncID="1" langID="0x409"> | ||
WFTestFont | ||
</namerecord> | ||
<namerecord nameID="19" platformID="3" platEncID="1" langID="0x409"> | ||
Wakamai Fondue rules! | ||
</namerecord> | ||
</name> | ||
|
||
<post> | ||
<formatType value="3.0"/> | ||
<italicAngle value="0.0"/> | ||
<underlinePosition value="0"/> | ||
<underlineThickness value="0"/> | ||
<isFixedPitch value="0"/> | ||
<minMemType42 value="0"/> | ||
<maxMemType42 value="0"/> | ||
<minMemType1 value="0"/> | ||
<maxMemType1 value="0"/> | ||
</post> | ||
|
||
<gasp> | ||
<gaspRange rangeMaxPPEM="65535" rangeGaspBehavior="15"/> | ||
</gasp> | ||
|
||
</ttFont> |
Binary file not shown.