mirror of
https://github.com/kika/fixedsys.git
synced 2024-05-19 19:42:19 +12:00
Compare commits
19 commits
Author | SHA1 | Date | |
---|---|---|---|
df78e71364 | |||
084b3db161 | |||
ed932dc558 | |||
6496c15de6 | |||
a9ef5b736e | |||
20d2684f1f | |||
793437a8bc | |||
648e74cc04 | |||
d9df2f48f1 | |||
47263daac2 | |||
2ad7b7971d | |||
b7b970b4ee | |||
efd6705f91 | |||
f6b7d94cce | |||
c7323b94f0 | |||
27beb0cad8 | |||
228a925305 | |||
59ed71e3b2 | |||
7f192786f8 |
2
FSEX.ttx
2
FSEX.ttx
|
@ -6038,7 +6038,7 @@
|
|||
<flags value="00000000 00001001"/>
|
||||
<unitsPerEm value="160"/>
|
||||
<created value="Mon Mar 5 00:27:48 2007"/>
|
||||
<modified value="Wed May 8 16:50:55 2016"/>
|
||||
<modified value="Sun May 8 16:50:55 2016"/>
|
||||
<xMin value="-140"/>
|
||||
<yMin value="-40"/>
|
||||
<xMax value="600"/>
|
||||
|
|
59
README.md
59
README.md
|
@ -1,9 +1,10 @@
|
|||
# Fixedsys Excelsior font with programming ligatures
|
||||
|
||||
## Original copyright
|
||||
Created by Darien Valentine
|
||||
## Distribution terms
|
||||
|
||||
[Font website](http://www.fixedsysexcelsior.com)
|
||||
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/).
|
||||
|
||||
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.
|
||||
|
||||
## It looks like this
|
||||
<img src="./images/sample.png" />
|
||||
|
@ -14,11 +15,24 @@ There are two versions provided:
|
|||
1. Default has =< and >= ligated into "less or equal" and "greater or equal"
|
||||
1. Alt version enables <= (replacing reverse fat arrow) and >= instead (closes #3)
|
||||
|
||||
### What is the ALT version in the releases about?
|
||||
|
||||
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.
|
||||
|
||||
| Input | Normal variant | ALT variant |
|
||||
|------- | ---------------- | ---------------- |
|
||||
| `<=` | left fat arrow | less-or-equal |
|
||||
| `<==` | left fat arrow | left fat arrow |
|
||||
| `=>` | right fat arrow | right fat arrow |
|
||||
| `=<` | less-or-equal | (no ligature) |
|
||||
| `>=` | greater-or-equal | greater-or-equal |
|
||||
| `>==` | (no ligature) | (no ligature) |
|
||||
|
||||
## Rationale
|
||||
I was always jealous for folks using [Fira Code](https://github.com/tonsky/FiraCode),
|
||||
I (Kirill Pertsev) was always jealous for folks using [Fira Code](https://github.com/tonsky/FiraCode),
|
||||
[Hasklig](https://github.com/i-tu/Hasklig) or [Monoid](https://github.com/larsenwork/monoid)
|
||||
fonts, but my problem is that I have a hard time reading (not even mentioning writing)
|
||||
a computer program in anything but 8x16 font. I probably spent too much time with older
|
||||
a computer program in anything but an 8x16 font. I probably spent too much time with older
|
||||
computers. So after fighting and losing an uphill battle with Glyph2, Fontlab and Fontforge
|
||||
I discovered [TTX](https://github.com/behdad/fonttools) and was able to finally stop being jealous.
|
||||
|
||||
|
@ -28,12 +42,13 @@ font for consoles and text editing.
|
|||
|
||||
## History
|
||||
This font is a simulated 8x16 bitmap font from old Windows and DOS. It was
|
||||
truly monospaced and really bitmapped and initially contained only Western ASCII
|
||||
charset.
|
||||
truly monospaced and really bitmapped and initially contained only
|
||||
windows-1250, windows-1251, a subset of windows-1252, windows-1253
|
||||
and windows-1254.
|
||||
Darien simulated the bitmap with TrueType outlines by building the font from
|
||||
10x10 squares ("pixels") and then joining the squares together. As such, this font
|
||||
only works as intended in only one size and usually with antialiasing switched
|
||||
off. The size is 16px or 12pt.
|
||||
off. The size is 16px, or 12pt@96dpi.
|
||||
|
||||
He also added a lot of foreign characters and made the font Unicode.
|
||||
|
||||
|
@ -48,14 +63,16 @@ in good old days, you know.
|
|||
|
||||
The supported programming ligatures are listed in the `ligatures.txt` file.
|
||||
|
||||
To create a TTF file from TTX XML just run `ttx -f FSEX.ttx`
|
||||
(`-f` means overwrite) or use OS X Makefile to also copy to the user Fonts
|
||||
folder and update font cache.
|
||||
To create a TTF file from TTX XML, just run `ttx -f FSEX.ttx`
|
||||
(`-f` means overwrite) or use the OS X Makefile to also copy it to the user Fonts
|
||||
folder and update the font cache.
|
||||
|
||||
## Supported software (incomplete list, send updates please)
|
||||
|
||||
I only tested in MacVim so far (this is the only editor I use). Comments and bug
|
||||
reports welcome. MacVim should be quite recent for ligatures to work.
|
||||
**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.
|
||||
[Tracking issue and workaround](https://github.com/macvim-dev/macvim/issues/841)
|
||||
|
||||
Add the following to your `.vimrc`:
|
||||
|
||||
|
@ -74,6 +91,22 @@ Courtesy of [@ForNeVeR](https://github.com/ForNeVeR):
|
|||
"editor.fontSize": 16,
|
||||
"editor.fontLigatures": true
|
||||
```
|
||||
or, for newer versions (courtesy of [@Kaffiend](https://github.com/Kaffiend))
|
||||
|
||||
```json
|
||||
"editor.fontFamily": "'Fixedsys Excelsior 3.01'",
|
||||
"editor.fontSize": 15,
|
||||
"editor.fontLigatures": true
|
||||
```
|
||||
**(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
|
||||
|
||||
```json
|
||||
"workbench.fontAliasing": "none"
|
||||
```
|
||||
|
||||
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.
|
||||
[Here is the script that I keep more or less updated when VSCode changes the CSS](https://gist.github.com/kika/2b5a3ccf065a251a6a8cbcdca7d823cc)
|
||||
|
||||
- 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).
|
||||
- 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.
|
||||
|
||||
|
@ -130,7 +163,9 @@ Based on https://github.com/tonsky/FiraCode/wiki/Setting-up-Emacs
|
|||
### Sublime Text 3 (build 3146+)
|
||||
Should be defined in the user settings as so:
|
||||
```
|
||||
"font_face": "Fixedsys Excelsior"
|
||||
"font_face": "Fixedsys Excelsior",
|
||||
"font_size": 16,
|
||||
"font_options": ["gray_antialias"]
|
||||
```
|
||||
|
||||
## ToDo
|
||||
|
|
Loading…
Reference in a new issue