| 1 |
# A copy of the 'creep' font by romeovs but with a strict character bounding box |
| 2 |
|
| 3 |
## Notes |
| 4 |
* mintty/wsltty, as of version of 3.4.7, should use `AutoLeading=0` and `RowSpacing=0` to retain original spacing between lines. |
| 5 |
* mintty, as of version of 2.7.6, requires `RowSpacing=-1` in the `.minttyrc` file for the box drawing glyphs not to be invisible. |
| 6 |
* This is found in `$HOME/.minttyrc` for `Cygwin` use, or |
| 7 |
* `%LOCALAPPDATA%\wsltty\home\%USERNAME%\.minttyrc` for `wsltty` use |
| 8 |
* Through Git bisect, I found that this commit causes the breakage, although I'm not sure if it is a bug or feature. https://github.com/mintty/mintty/commit/2cc746667595e08f57b12cfa0df0b67787762620 |
| 9 |
|
| 10 |
## Introduction |
| 11 |
I love romeovs's creep font, but I think you could only use it well in Apple's Terminal.app |
| 12 |
because it has negative line and character width spacing, which the font requires to be spaced correctly. |
| 13 |
The root cause of this appears to be because some glyphs are bigger than the 5px by 11px bounding box, |
| 14 |
causing most terminals to think a much bigger box is necessary for the general ASCII glyphs. |
| 15 |
|
| 16 |
In order to fix this issue, I manually hand painted all the glyphs from the 'creep' font in fontforge. |
| 17 |
This was probably not the smartest way, but I did not feel like researching a way to import it by code. |
| 18 |
On the plus side, I was watching a few movies while drawing these glyphs, so it wasn't too bad ;-) |
| 19 |
|
| 20 |
After doing this I could understand why some characters extend past the bounding box, as 5x11 is ridiculously small |
| 21 |
for the more complicated glyphs. However, to get it to work nicely on terminals and editors without negative spacing support, |
| 22 |
I had to use my best judgement and truncate or modify certain glpyhs so they all fit without exceptions. This of course |
| 23 |
is not as nice, and arguably makes certain glyphs much less recognizable, but I felt it was an acceptable compromise since |
| 24 |
they do not appear often. |
| 25 |
|
| 26 |
### Result |
| 27 |
|
| 28 |
By maintaining the strict 5x11 bounding box, I was able to get the font working in all the programs I typically use that don't support fancy spacing adjustment: |
| 29 |
* XTerm (BDF format) |
| 30 |
* UXRvt (BDF format) |
| 31 |
* X11 (BDF format) |
| 32 |
* Windows GVim (TTF with embedded bitmaps) |
| 33 |
* mintty (TTF with embedded bitmap). |
| 34 |
* wsltty (TTF with embedded bitmap). |
| 35 |
* BashOnWindows / Bash on Ubuntu on Windows / Windows cmd.exe (TTF with embedded bitmap). |
| 36 |
* Notepad.exe (TTF with embedded bitmaps) |
| 37 |
|
| 38 |
Now I have crazy awesome code density :-) |
| 39 |
|
| 40 |
## Original Here: |
| 41 |
### https://github.com/romeovs/creep |