mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-19 09:51:48 +02:00
Fixes scaling issues in first set of glyphs in certain fonts (fixes issue #1)
* fixes scaling of other fonts that aren't 2048 em size (all the currently patched 1000 em fonts included * repatched included fonts * fixes the font-patcher script * added font em size info to the readme
This commit is contained in:
parent
199e1b1d69
commit
cebdc6d085
6 changed files with 14 additions and 9 deletions
|
@ -33,7 +33,8 @@ sourceFont_em_original = sourceFont.em
|
|||
|
||||
#Open a font
|
||||
glyphFont1=fontforge.open("glyph-source-fonts/original-source.otf")
|
||||
|
||||
## @todo improve/fix
|
||||
sourceFont.em = glyphFont1.em
|
||||
#select unicodes:
|
||||
glyphFont1.selection.select(("ranges","unicode"),0xE500,0xE51D)
|
||||
#Copy those glyphs into the clipboard:
|
||||
|
@ -44,6 +45,9 @@ sourceFont.selection.select(("ranges","unicode"),0xE600,0xE61D)
|
|||
#paste the glyphs above in:
|
||||
sourceFont.paste()
|
||||
|
||||
# fix scaling of glyphs
|
||||
sourceFont.em = sourceFont_em_original
|
||||
|
||||
### even more glyphs
|
||||
|
||||
##Open a font
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
17
readme.md
17
readme.md
|
@ -10,14 +10,15 @@ Typical install of the patched font or generate a patched font from your own fon
|
|||
|
||||
## Patched Fonts
|
||||
|
||||
| Currnetly Included Patched Fonts |
|
||||
|--------------------------------------------------------|
|
||||
| Anonymice Powerline Plus Nerd File Types |
|
||||
| Droid Sans Mono for Powerline Plus Nerd File Types |
|
||||
| Literation Mono Powerline Plus Nerd File Types |
|
||||
| ProggyCleanTT Plus Nerd File Types |
|
||||
| Sauce Code Powerline Plus Nerd File Types |
|
||||
| Ubuntu Mono derivative Powerline Plus Nerd File Types |
|
||||
| Currnetly Included Patched Fonts | em size |
|
||||
|--------------------------------------------------------|----------|
|
||||
| Anonymice Powerline Plus Nerd File Types | 2048 |
|
||||
| Droid Sans Mono for Powerline Plus Nerd File Types | 2048 |
|
||||
| Literation Mono Powerline Plus Nerd File Types | 2048 |
|
||||
| ProggyCleanTT Plus Nerd File Types | 2048 |
|
||||
| Sauce Code Powerline Plus Nerd File Types | 1000 |
|
||||
| Ubuntu Mono derivative Powerline Plus Nerd File Types | 1000 |
|
||||
| Ubuntu Mono Plus Nerd File Types | 1000 |
|
||||
|
||||
Patching the font of your own choosing:
|
||||
* requires: python2, python-fontforge package
|
||||
|
|
Loading…
Reference in a new issue