Width Test (幅テスト is its Japanese name) is a special-purpose OpenType/CFF font that is intended to be used to test the extent to which applications and other text-handling environments support the various width-related GSUB features, specifically 'fwid' (Full Widths), 'hwid' (Half Widths), 'twid' (Third Widths), and 'qwid' (Quarter Widths).
-
The glyph set includes the mandatory .notdef glyph at CID+0, along with a space (U+0020) glyph at CID+1.
-
CID+2 is the glyph for zero (U+0030) that was taken from the Regular weight of Source Code Pro and which has a 600-unit horizontal advance. This glyph serves as a default glyph whose horizontal advance can be considered proportional.
-
CIDs 3 through 6 are full-, half-, third-, and quarter-width glyphs that are made up of black boxes that correspond to the denominator portion of their width value when expressed as a fraction, and the use of the 'fwid', 'hwid', 'twid', or 'qwid' GSUB features will substitute zero (U+0030) with the appropriate glyph.
-
CIDs 3 through 6 are additionally mapped from one (U+0031) through four (U+0034) for the purpose of easing the creation of reference tests. CID+3 is also mapped from full-width zero (U+FF10).
The image below shows the glyphs for CIDs 2 through 6 with registration marks:
To build the binary font file from source, you need to have installed the Adobe Font Development Kit for OpenType (AFDKO). The AFDKO tools are widely used for font development today, and are part of most font editor applications.
In this repository, all necessary files are in place for building the OpenType/CFF font, and the COMMANDS.txt file provides the command lines that are used.
For any suggestions for changes, please create a new issue for consideration.