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:
ryanoasis 2014-12-05 17:53:07 -05:00
parent 199e1b1d69
commit cebdc6d085
6 changed files with 14 additions and 9 deletions

View file

@ -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

View file

@ -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