Skip to content

Instruction for patching Lucida Console font for use in Windows version of gVim

License

Notifications You must be signed in to change notification settings

glexey/lucida_console_powerline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

How to patch Windows Lucida Console font for use with Windows gvim + powerline/airline

Need:

  1. fontforge.exe (font editing suite)
  2. ttx.exe (font to/fro XML converter)
  3. powerline-fontpatcher script

Steps:

  1. Copy lucon.ttf from /c/windows/fonts to another dir

  2. Run powerline-fontpatcher to patch with powerline symbols:

     c:/Program\ Files\ \(x86\)/FontForgeBuilds/bin/fontforge.exe -script ./powerline-fontpatcher lucon.ttf
    

    Resulting font will not be usable in gvim yet, since it's not marked as fixed pitch.

  3. Convert the patched font to XML:

     ttx.exe Lucida\ Console\ for\ Powerline.ttf
    
  4. Edit Lucida Console for Powerline.ttx and set isFixedPitch to 1:

     <isFixedPitch value="1"/>
    
  5. Convert XML back to ttf:

     rm Lucida\ Console\ for\ Powerline.ttf
     ttx.exe Lucida\ Console\ for\ Powerline.ttx
    
  6. Patched font is ready, drag-n-drop to c:/windows/fonts to install

About

Instruction for patching Lucida Console font for use in Windows version of gVim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published