- Download Font Patcher and extract it. You will need
font-patcher
script. - Copy Consolas font from
C:\Windows\Fonts
.You will get (probably) 4 files:
consola.ttf
,consolab.ttf
,consolai.ttf
,consolaz.ttf
. - Install required dependencies (Ubuntu):
apt-get install python3-fontforge
- If You will get
ValueError: not enough values to unpack (expected 3, got 2)
edit font-patcher to fix it. - Run script for all
ttf
files:
cd FontPatcher
fontforge -script font-patcher ../Consolas/consola.ttf
fontforge -script font-patcher ../Consolas/consolab.ttf
fontforge -script font-patcher ../Consolas/consolai.ttf
fontforge -script font-patcher ../Consolas/consolaz.ttf
- Enjoy 😁
ls
'Consolas Bold Italic Nerd Font.ttf' 'Consolas Italic Nerd Font.ttf' font-patcher src
'Consolas Bold Nerd Font.ttf' 'Consolas Nerd Font.ttf' bin readme.md
More information at Nerd Fonts repo.