IBM Plex is an interesting font that I'm looking forward to, and I would like to try it out. However, you may be in similar setup as I am, which relays on Powerline glyphs in order to display vim/statusline/prompt correctly.
This walkthrough was performed on macOS and has patched IBM Plex OpenType fonts, but you should be able to patch your own fonts (any fonts) on any OS, as long as you have Python installed.
Download IBM Plex:
https://github.com/IBM/plex/releasesInstall fontforge:
brew install fontforge
Clone the font patch script from sgolovine on GitHub:
git clone https://github.com/sgolovine/nerdfont-patcher
Navigate to the directory:
cd nerdfont-patcher
Add Powerline glyphs to IBM Plex font:
fontforge -script font-patcher --powerline ../OpenType/IBM-Plex-Mono/IBMPlexMono-Regular.otf
(You may need to change the path-to-file, more info please refer to the README of nerdfont-patcher)
Top comments (1)
Thanks for this!!! I got the following error when I first ran the script -
TypeError: 'float' object cannot be interpreted as an integer
,sourceFont[currentSourceFontGlyph].left_side_bearing = 0.0
,line 716, in copy_glyphs
etc.Based on some googling and this, I tried changing the
0.0
to0
in thefont-patcher
script, and it just worked :D !!!