mirror of
https://github.com/ToxicFrog/Ligaturizer.git
synced 2024-09-11 09:55:47 +03:00
Renamed input/output directories
Also cleaned up README.
This commit is contained in:
parent
094e29fd87
commit
885b5835a2
49
README.md
49
README.md
@ -2,24 +2,25 @@
|
|||||||
|
|
||||||
![](img.png)
|
![](img.png)
|
||||||
|
|
||||||
This repo contains:
|
**Add ligatures to any coding font!**
|
||||||
1. A script [ligaturize.py](ligaturize.py) to add the ligatures from [Fira Code](https://github.com/tonsky/FiraCode) to a font without ligatures
|
|
||||||
2. Programming fonts with ligatures added (generated using the above script), including:
|
|
||||||
|
|
||||||
* Anonymous Pro
|
What this repo contains:
|
||||||
* CamingoCode
|
1. Programming fonts with ligatures added (in `output-fonts/`), including:
|
||||||
* Cousine
|
* Anonymous Pro
|
||||||
* DejaVu Sans Mono
|
* CamingoCode
|
||||||
* Droid Sans Mono
|
* Cousine
|
||||||
* Hack
|
* DejaVu Sans Mono
|
||||||
* Inconsolata-g
|
* Droid Sans Mono
|
||||||
* Inconsolata
|
* Hack
|
||||||
* Meslo (sizes: LGL, LGLDZ, LGM, LGMDZ, LGS, LGSDZ)
|
* Inconsolata-g
|
||||||
* Oxygen Mono
|
* Inconsolata
|
||||||
* Roboto Mono
|
* Meslo (sizes: LGL, LGLDZ, LGM, LGMDZ, LGS, LGSDZ)
|
||||||
* SF Mono
|
* Oxygen Mono
|
||||||
* Ubuntu Mono
|
* Roboto Mono
|
||||||
* edlo
|
* SF Mono
|
||||||
|
* Ubuntu Mono
|
||||||
|
* edlo
|
||||||
|
2. A script [ligaturize.py](ligaturize.py) that adds the ligatures from [Fira Code](https://github.com/tonsky/FiraCode) to a font without ligatures
|
||||||
|
|
||||||
**Credit**: This awesome script was written by [IlyaSkriblovsky](https://github.com/IlyaSkriblovsky) for adding ligatures to Deja Vu Sans Mono ([dv-code-font](https://github.com/IlyaSkriblovsky/dv-code-font)). I've just made a few minor changes to generalize the script so that it works for any given font.
|
**Credit**: This awesome script was written by [IlyaSkriblovsky](https://github.com/IlyaSkriblovsky) for adding ligatures to Deja Vu Sans Mono ([dv-code-font](https://github.com/IlyaSkriblovsky/dv-code-font)). I've just made a few minor changes to generalize the script so that it works for any given font.
|
||||||
|
|
||||||
@ -30,13 +31,21 @@ they are available via brew (`brew install fontforge`).
|
|||||||
**Using the Fonts**: See the [FiraCode README](https://github.com/tonsky/FiraCode) for a list of supported editors.
|
**Using the Fonts**: See the [FiraCode README](https://github.com/tonsky/FiraCode) for a list of supported editors.
|
||||||
|
|
||||||
## Using the Script ##
|
## Using the Script ##
|
||||||
1. Move/copy the font you want to ligaturize into `source-fonts/`
|
1. Move/copy the font you want to ligaturize into `input-fonts/`
|
||||||
2. Run the script: `$ fontforge -lang=py ligaturize.py`
|
2. Run the script: `$ fontforge -lang=py ligaturize.py`
|
||||||
3. You'll be prompted for the name of the font, and the name for the generated font. Example:
|
3. You'll be prompted for the name of the font, and the name for the generated font. Example:
|
||||||
|
|
||||||
```
|
```shell
|
||||||
|
❯ fontforge -lang=py ligaturize.py
|
||||||
|
...
|
||||||
|
Enter the source font filename (including extension): RobotoMono-Regular.ttf
|
||||||
|
Enter a name for your ligaturized font -- or press ENTER to use the same name: <PRESS ENTER>
|
||||||
|
...
|
||||||
|
Generated ligaturized font Roboto Mono L in ligaturized-fonts/RobotoMono.ttf
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell
|
||||||
❯ fontforge -lang=py ligaturize.py
|
❯ fontforge -lang=py ligaturize.py
|
||||||
Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors.
|
|
||||||
...
|
...
|
||||||
Enter the source font filename (including extension): RobotoMono-Regular.ttf
|
Enter the source font filename (including extension): RobotoMono-Regular.ttf
|
||||||
Enter a name for your ligaturized font -- or press ENTER to use the same name: RobotoMonoL
|
Enter a name for your ligaturized font -- or press ENTER to use the same name: RobotoMonoL
|
||||||
|
BIN
input-fonts/SFMono-Regular.otf
Normal file
BIN
input-fonts/SFMono-Regular.otf
Normal file
Binary file not shown.
@ -4,8 +4,8 @@ import fontforge
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
# Constants
|
# Constants
|
||||||
SOURCE_FONT_DIR = "source-fonts"
|
SOURCE_FONT_DIR = "input-fonts"
|
||||||
OUTPUT_FONT_DIR = "ligaturized-fonts"
|
OUTPUT_FONT_DIR = "output-fonts"
|
||||||
COPYRIGHT = '\nProgramming ligatures added by Ilya Skriblovsky from FiraCode\nFiraCode Copyright (c) 2015 by Nikita Prokopov'
|
COPYRIGHT = '\nProgramming ligatures added by Ilya Skriblovsky from FiraCode\nFiraCode Copyright (c) 2015 by Nikita Prokopov'
|
||||||
|
|
||||||
def get_input_fontname():
|
def get_input_fontname():
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user