├── images ├── sample.png └── IMG_3506.jpg ├── ligatures.txt ├── Makefile └── README.md /images/sample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apples/fixedsys/master/images/sample.png -------------------------------------------------------------------------------- /images/IMG_3506.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apples/fixedsys/master/images/IMG_3506.jpg -------------------------------------------------------------------------------- /ligatures.txt: -------------------------------------------------------------------------------- 1 | a<->b 2 | a->b 3 | a<-b 4 | a=>b 5 | a<=b 6 | a++b 7 | a!=b 8 | a!==b 9 | a===b 10 | a>>=b 11 | a=<b 13 | a==b 14 | a<*>b 15 | a<$>b 16 | a<<>>b 18 | a<>b 19 | a/=b 20 | a::b 21 | a:=b 22 | {-ab-} 23 | a<|b 24 | a|>b 25 | a~>b 26 | a<~b 27 | a<~>b 28 | b<^>b 29 | a/\b 30 | a<==>b 32 | a<|>b 33 | a-->b 34 | a>=b 35 | a= $@ 18 | 19 | FSEX-alt.ttx: FSEX.ttx 20 | $(CPP) -DALT_LESSEQUAL $< |grep -v "^#" > $@ 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Fixedsys Excelsior font with programming ligatures 2 | 3 | ## Distribution terms 4 | 5 | The font was originally authored by Darien Valentine [@bathos](https://github.com/bathos) and provided via a now-defunct site at [fixedsysexcelsior.com](http://www.fixedsysexcelsior.com). This derivative's source code repository and issue tracker can be found at [github.com/kika/fixedsys](https://github.com/kika/fixedsys/). 6 | 7 | The creator(s) of this content have released it to the public domain. For jurisdictions where this is not permitted, it is released under the terms of the Creative Commons Zero Dedication. 8 | 9 | ## It looks like this 10 | 11 | 12 | ## Where to get the result without compiling 13 | The compiled TTF binary font is on the Releases page. 14 | There are two versions provided: 15 | 1. Default has =< and >= ligated into "less or equal" and "greater or equal" 16 | 1. Alt version enables <= (replacing reverse fat arrow) and >= instead (closes #3) 17 | 18 | ### What is the ALT version in the releases about? 19 | 20 | The fonts declare a set of ligatures that replace certain groups of adjacent characters by a combined glyph. The ALT variant has some of the ligature declarations swapped to facilitate code programming, where `<=` is almost always meant to be a less-or-equal operator, and also works for the general case too, based on the presumption that left fat arrows are seldomly used even in scientific texts. 21 | 22 | | Input | Normal variant | ALT variant | 23 | |------- | ---------------- | ---------------- | 24 | | `<=` | left fat arrow | less-or-equal | 25 | | `<==` | left fat arrow | left fat arrow | 26 | | `=>` | right fat arrow | right fat arrow | 27 | | `=<` | less-or-equal | (no ligature) | 28 | | `>=` | greater-or-equal | greater-or-equal | 29 | | `>==` | (no ligature) | (no ligature) | 30 | 31 | ## Rationale 32 | I (Kirill Pertsev) was always jealous for folks using [Fira Code](https://github.com/tonsky/FiraCode), 33 | [Hasklig](https://github.com/i-tu/Hasklig) or [Monoid](https://github.com/larsenwork/monoid) 34 | fonts, but my problem is that I have a hard time reading (not even mentioning writing) 35 | a computer program in anything but an 8x16 font. I probably spent too much time with older 36 | computers. So after fighting and losing an uphill battle with Glyph2, Fontlab and Fontforge 37 | I discovered [TTX](https://github.com/behdad/fonttools) and was able to finally stop being jealous. 38 | 39 | This current release has almost everything I use regularly. Feel free to request in the issues. PRs are of course 40 | more than welcome. I hope I'm not the only crazy guy on the internet using 8x16 41 | font for consoles and text editing. 42 | 43 | ## History 44 | This font is a simulated 8x16 bitmap font from old Windows and DOS. It was 45 | truly monospaced and really bitmapped and initially contained only 46 | windows-1250, windows-1251, a subset of windows-1252, windows-1253 47 | and windows-1254. 48 | Darien simulated the bitmap with TrueType outlines by building the font from 49 | 10x10 squares ("pixels") and then joining the squares together. As such, this font 50 | only works as intended in only one size and usually with antialiasing switched 51 | off. The size is 16px, or 12pt@96dpi. 52 | 53 | He also added a lot of foreign characters and made the font Unicode. 54 | 55 | ## Tech trivia 56 | The font is distributed in binary TTF format and I decompiled it with 57 | [TTX](https://github.com/behdad/fonttools), added a few symbols inspired by 58 | [Fira Code](https://github.com/tonsky/FiraCode) and created necessary ligatures. 59 | 60 | To design the symbols I used quad lined paper, pencil and rubber eraser. Like 61 | in good old days, you know. 62 | 63 | 64 | The supported programming ligatures are listed in the `ligatures.txt` file. 65 | 66 | To create a TTF file from TTX XML, just run `ttx -f FSEX.ttx` 67 | (`-f` means overwrite) or use the OS X Makefile to also copy it to the user Fonts 68 | folder and update the font cache. 69 | 70 | ## Supported software (incomplete list, send updates please) 71 | 72 | I only tested in MacVim so far (this is the only editor I use). Comments and bug 73 | reports welcome. MacVim should be quite recent for ligatures to work. 74 | **Note**: Versions of MacVim above 8.1-146 seem to have a regression where ligatures are not displayed correctly. Use `brew pin` to maintain your MacVim version below this until this is fixed. 75 | [Tracking issue and workaround](https://github.com/macvim-dev/macvim/issues/841) 76 | 77 | Add the following to your `.vimrc`: 78 | 79 | ``` 80 | set guifont=Fixedsys\ Excelsior:h16 81 | set noanti 82 | set macligatures 83 | ``` 84 | Courtesy of [@ForNeVeR](https://github.com/ForNeVeR): 85 | 86 | - Windows + IDEA (Oracle JDK): renders ligatures, but have problems rendering latin `A` letter (it occupies no space in text and gets composed with a next character). There's a warning in IDEA interface telling about incompatibilities of Oracle JDK and fonts with ligatures. 87 | - Windows + IDEA (JetBrains JDK): no problems noticed. 88 | - Windows + VS Code: 89 | ```json 90 | "editor.fontFamily": "Fixedsys Excelsior", 91 | "editor.fontSize": 16, 92 | "editor.fontLigatures": true 93 | ``` 94 | or, for newer versions (courtesy of [@Kaffiend](https://github.com/Kaffiend)) 95 | 96 | ```json 97 | "editor.fontFamily": "'Fixedsys Excelsior 3.01'", 98 | "editor.fontSize": 15, 99 | "editor.fontLigatures": true 100 | ``` 101 | **(The following is only for VSCode on MacOS)** For many people this may look ugly because Fixedsys is not designed to be used with antialiasing. Then you may add the following option 102 | 103 | ```json 104 | "workbench.fontAliasing": "none" 105 | ``` 106 | 107 | Which will make code editor look nice, but everything else in the VSCode UI - ugly. The solution to that is to modify the CSS for the VSCode itself. 108 | [Here is the script that I keep more or less updated when VSCode changes the CSS](https://gist.github.com/kika/2b5a3ccf065a251a6a8cbcdca7d823cc) 109 | 110 | - Windows + Visual Studio 2015: works mostly okay, but `->` ligature doesn't work. That's a [known problem of WPF text renderer](https://github.com/tonsky/FiraCode/issues/259#issuecomment-243422144). 111 | - Windows + ConEmu: no ligatures at all. Powerline stuff works okay though, so font is usable even without ligatures. I'd recommend to set font cell width manually to 8 (otherwise it'll have problems determining proper places for line wrapping and rendering Far Manager UI): **Settings** → **Main** → **Main console font** group → select **Cell: 8** from the selector. 112 | 113 | ### Emacs 114 | Courtesy of [@adrianparvino](https://github.com/adrianparvino) 115 | 116 | Requires you to move the U+10001 PUA block to the first PUA block 117 | 118 | In this example, U+10001 was moved to U+efb0. 119 | 120 | Based on https://github.com/tonsky/FiraCode/wiki/Setting-up-Emacs 121 | ``` 122 | (set-fontset-font t '(#Xefb0 . #Xefc5) "Fixedsys Excelsior") 123 | (defconst fixedsys-excelsior-font-lock-keywords-alist 124 | (mapcar (lambda (regex-char-pair) 125 | `(,(car regex-char-pair) 126 | (0 (prog1 () 127 | (compose-region (match-beginning 1) 128 | (match-end 1) 129 | ;; The first argument to concat is a string containing a literal tab 130 | ,(concat " " (list (decode-char 'ucs (cadr regex-char-pair))))))))) 131 | '(("\\(>>=\\)" #Xefb0) 132 | ("\\(=<<\\)" #Xefb1) 133 | ("\\(<\\*>\\)" #Xefb2) 134 | ("\\(<\\$>\\)" #Xefb3) 135 | ("\\(::\\)" #Xefb4) 136 | ("\\(:=\\)" #Xefb5) 137 | ("\\(<<<\\)" #Xefb6) 138 | ("\\(>>>\\)" #Xefb7) 139 | ("\\(<>\\)" #Xefb8) 140 | ("\\(/=\\)" #Xefb9) 141 | ("\\({-\\)" #Xefba) 142 | ("\\(-}\\)" #Xefbb) 143 | ("\\(<|\\)" #Xefbc) 144 | ("\\(|>\\)" #Xefbd) 145 | ("\\(~>\\)" #Xefbe) 146 | ("\\(<~\\)" #Xefbf) 147 | ("\\(<~>\\)" #Xefc0) 148 | ("\\(<^>\\)" #Xefc1) 149 | ("\\(/\\\\\\)" #Xefc2) 150 | ("\\(<|>\\)" #Xefc3) 151 | ("\\(>=>\\)" #Xefc4) 152 | ("\\(<=<\\)" #Xefc5)))) 153 | 154 | 155 | (defun add-fixedsys-excelsior-symbol-keywords () 156 | (font-lock-add-keywords nil fixedsys-excelsior-font-lock-keywords-alist)) 157 | 158 | (add-hook 'prog-mode-hook 159 | #'add-fixedsys-excelsior-symbol-keywords) 160 | ``` 161 | 162 | 163 | ### Sublime Text 3 (build 3146+) 164 | Should be defined in the user settings as so: 165 | ``` 166 | "font_face": "Fixedsys Excelsior", 167 | "font_size": 16, 168 | "font_options": ["gray_antialias"] 169 | ``` 170 | 171 | ## ToDo 172 | <* *> <$ $> 173 | --------------------------------------------------------------------------------