Skip to content

Commit

Permalink
Fixes scaling issues in first set of glyphs in certain fonts (fixes i…
Browse files Browse the repository at this point in the history
…ssue #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
  • Loading branch information
ryanoasis committed Dec 5, 2014
1 parent 199e1b1 commit cebdc6d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
6 changes: 5 additions & 1 deletion font-patcher
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
Binary file modified patched-fonts/Anonymice Powerline Plus Nerd File Types.ttf
Binary file not shown.
Binary file modified patched-fonts/Sauce Code Powerline Plus Nerd File Types.otf
Binary file not shown.
Binary file modified patched-fonts/Ubuntu Mono Plus Nerd File Types.ttf
Binary file not shown.
Binary file not shown.
17 changes: 9 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

This comment has been minimized.

Copy link
@blueyed

blueyed Dec 5, 2014

Collaborator

@ryanoasis
Please explain what "em size" means?
It's probably related to "em" in css? The size of an M?
What's the unit, and how do 2048 relate to 1000 (why not 1024)?

|--------------------------------------------------------|----------|
| 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
Expand Down

1 comment on commit cebdc6d

@ryanoasis
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blueyed not the css you and I are probably used to but of the actual font. http://designwithfontforge.com/en-US/The_EM_Square.html

Please sign in to comment.