Illusion
This is an auxiliary font that supports coding in Japanese on console devices.
Recent updates
For more information, please see CHANGELOG.md.
2019-06-07 v0.2.5
2019-06-06 v0.2.4
- Fix: Decompose U+00BC-BE, U+0410, U+0450, U+2460-2473
- Update: Build webfont from hinted
Features
- The main alphanumeric characters are adjusted to half-width based on Roboto Mono.
- We have implemented variations that suit Unicode's East Asian Width handling.
- It is intended to be used in conjunction with regular Japanese uniform width fonts.
- Includes ASCII code, Ambiguous symbols from JIS X 0208, ruled elements and block elements for console terminals.

Combining with your favorite Japanese font
Japanese hiragana, katakana, and kanji are not included so that they can be used in combination with your favorite Japanese uniform width font.
- In the browser, you can freely combine them by writing them in
font-family CSS. - Many apps can use the registry
FontLink on Windows.
Three variations
Unicode's East Asian Width Ambiguous and Neutral combinations are supported for both half-width and full-width combinations.
| ambiguous | Neutral | Font Family | Main usage |
|---|
| Half-sided | Half-sided | Illusion N (Narrow) | Emphasis on compatibility with international console environments |
| Full-width | Half-sided | Illusion W (Wide) | Emphasis on compatibility with Shift_JIS and EUC-JP |
| Full-width | Full-width | Illusion Z (Zenkaku) | The same width as many Japanese uniform width fonts |
Common parts
- The Roboto Mono has been adjusted to half-width to reduce the height of some lowercase letters.
- The parentheses and symbols were created with an emphasis on the balance between coding and full-width characters.

Illusion N (Narrow)
- Character width compatible with international console environments with Unicode support.
- JIS X 0208 Ambiguous symbols are designed in half-width.
- Circled numbers
⑩ Roman numerals Ⅳ and others are also implemented as half-width.

Illusion W (Wide)
- Character width compatible with traditional Shift_JIS and EUC-JP.
- The Ambiguous symbols of JIS X 0208 are implemented in full-width width.
- Neutral for bordered line elements and block elements is treated as half-width.
- Powerline Symbols for vim's
ambiwidth=double are also full-width.

Illusion Z (Zenkaku)
- The character width is the same as many Japanese uniform width fonts.
- Neutral for bordered line elements and block elements is also treated as full-width.

Combination with Japanese uniform width fonts
browser
- It can be combined relatively freely, such as Meilio and Yu Gothic.
- To adjust the gap between lines in the lines, use
line-height: 1.25 in conjunction with the line-height.
FontLink in Windows Registry
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionFontLinkSystemLink
From the menu bar, go to Edit - New - Multi-line String Value
| Key name | data |
|---|
| Illusion N | mplus-1m-regular.ttf,M+ 1m |
| Illusion N Bold | mplus-1m-bold.ttf,M+ 1m bold |
You can combine them in this way.
In addition, for BIZ UDゴシック, if AvgCharWidth of OS/2 table is a uniform width font that is not 1/2 of UnitsPerEm in head table, the characters will overlap when combined with FontLink.
Known Issues
Regarding the deviation
How to build
What you need
- FontForge
- ttfautohint
- Python 3.x
- Pythoh Packages (via pip install)
- afdko (fontTools, otf2otc)
- Brotli
- zopfli
- tqdm
procedure
- Open
src/Illusion-*.sfd with FontForge.- The glyphs derived from Roboto Mono reduce the X coordinate to 83.0078125%.
- Italic glyphs are placed in the private area on the 15th floor U+Fxxxx.
- The full-width glyphs are placed in the private area on the 16th side of U+10xxxx.
- It does not support full-width italics.
- Outputs TrueType font to
src/Illusion-*.ttf .- Check only the "OpenType Specifications" option.
- Run
python build.py to generate it in dist/ .
license
- Conforms to Roboto Mono (Google) Apache License 2.0.
Glyph details
Legend

ASCII

Unicode

Powerline Symbols


JIS X 0208 Ambiguous Half-Width


JIS X 0208 Ambiguous Full-Width


Box Drawing, Block Elements Half-Width

Box Drawing, Block Elements Full-Width
