![]() This will generate a file such as PowerlineForNotoSansMono.ttf.Run for f in PowerlineFor*.sfd do fontforge -script ~/work/nerd-fonts/font-patcher -powerline -powerlineextra -ext ttf $f done.The files created in this way for the current set of fonts used by terminal are checked into terminal/fonts.The nerd-fonts patching script will use this information to patch the empty font file and produce glyphs of the correct width and height. Create a single glyph in the empty file at position 0 by clicking on it to select it, then choosing Metrics > Set Width and enter the width. Open one of the glyphs in the full font file and find its width (e.g.You might need to experiment with the different values to get Powerline glyphs which match the correct height. Element > Font Info > OS/2 > Metrics Copy values across.Element > Font Info > General Copy values across.The values for NotoSansMono-Regular.ttf are shown below for example. Open the full font to match in FontForge and find the following information.Set font name fields in Element > Font Info > PS Names. Values for width and height must be copied from the actual font into this file before we use nerd fonts to patch it. Using FontForge, create a new empty font file, e.g.Apply Nerd Fonts patch - git apply 0001-Generate-Powerline-fonts-for-nassh.patch. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |