Skip to content

FAQ and Troubleshooting

Fini edited this page Nov 17, 2024 · 17 revisions

Nerd Fonts

  1. What does it look like?
  2. How do I report issues?
  3. What are all these variations?
  4. Which font do I want?
  5. How do I use glyphs in my terminal
  6. Why do the glyphs look small, squished, or not full width?
  7. Why do some of the fonts names appear incorrect or appear to have typos?
  8. What do these acronym variations in the font name mean: LG, L, M, S, DZ, SZ?
  9. Why isn't my favorite font included (already patched)?
  10. Error: munmap_chunk(): invalid pointer
  11. segmentation fault running patcher
  12. Font patching debugging

What does it look like?

see Screenshots

How do I report issues?

see: Reporting Issues

Which font?

TL;DR

  • Pick your font family:

    • If you are limited to monospaced fonts (because of your terminal, etc) then pick a font with Nerd Font Mono (or NFM).
    • If you want to have bigger icons (usually around 1.5 normal letters wide) pick a font without Mono i.e. Nerd Font (or NF). Most terminals support this, but ymmv.
    • If you work in a proportional context (GUI elements or edit a presentation etc) pick a font with Nerd Font Propo (or NFP).

Explanation

Once you narrow down your font choice of family (Droid Sans, Inconsolata, etc) and style (bold, italic, etc) you have 2 main choices:

Option 1: Download already patched font

For a stable version download a font package from the release page

Option 2: Patch your own font

Patch your own variations with the various options provided by the font patcher (e.g. not include all symbols for smaller font size)

This is the option you want if the font you use is not already included or you want maximum control of what's included

How do I use glyphs in my terminal?

echo $'\ue62b'
echo "5 digit codes: \Uf0004"
printf "or use printf instead of echo"

If echo or printf can do \u or \U depends on your concrete shell.

On linux you can enter unicodes directly with the key sequence ctrl-shift-u f 0 0 0 4 enter (example for f0004).

Why do the glyphs look small, squished, or not full width?

Make sure your terminal supports double-width (aka full width ambiguous characters). Some terminal emulators (such as URxvt) do not work well or at all with such characters. If this is the case you will have to use the single-width (monospace) version of a given font or use a different terminal emulator.

For URxvt specific help or things to try see the wiki page Terminal Emulators URxvt

Issue references: #155, #37

Why do some of the fonts names appear incorrect or appear to have typos?

Some of the patched fonts are intentionally renamed due to license restrictions to comply with SIL Open Font License (OFL). In particular the Reserved Font Names (RFNs)

What do these acronym variations in the font name mean: LG, L, M, S, DZ, SZ?

  • LG - Line Gap
  • L - Large
  • M - Medium
  • S - Small
  • DZ - Dotted Zero
  • SZ - Slashed Zero

This particularly applies to Meslo at the moment:

Meslo has changed it’s name to Meslo LG which now includes three variants: small, medium and large.

LG stands for Line Gap, so there’s one variant for smaller vertical line spacing, more towards Apple’s Menlo, a normal line gap (which equals Meslo v0.1) and a large gap, which is more than twice the space of Apple’s Menlo.

In addition to Regular, there’s Italic, Bold and Bold Italic font styles included for each LG variant.

source: https://github.com/andreberg/Meslo-Font

Why isn't my favorite font included?

It is most likely due to the font not being free or due to licensing reasons which prevent distributing or distributing modified versions.

E.g.

Most fonts you can freely modify on your own so feel free to try patching them on your own :)

munmap_chunk(): invalid pointer

Issue

[Font Patcher Py3] Error in python3': munmap_chunk(): invalid pointer

For the original details on the solution: comment on #129

Original Issue Reference: #129

Solutions

  • Option 1: Downgrade Python to 3.5.2-3 and FontForge to 20161012-2 ref
  • Option 2: Update to the latest FontForge version (issue has been fixed in recent versions) ref
  • Option 3: Install aur/python35 instead of downgrading Python ref

segmentation fault running python patcher

Issue

segmentation fault

For the original details on the solution: comment on #8

Original Issue Reference: #8

Solutions

  • Option 1: Update FontForge and/or Python 2.x on macOS (OSX)
  • Option 2: Patch font on Linux

Font patching debugging

Issue

The font you patched is looking having some issues.

Solution

  1. You did take a backup of your old patched font before patching it again, didn't you?
  2. Look at the output of font-patcher after adding --debug 2. Is there anything there that hints to the issue you are experiencing?
  3. Copy and paste (as text) the strange icon into a unicode to codepoint converter. Then, search which font provides the glyph for that codepoint fc-list :charset=xxxx with xxxx being the 4 digit hexadecimal codepoint you found from the above. This will tell you where the glyph is coming from.
  4. nerdfix might be helpful. Although, fixing upstream is always better.
  5. Make sure that whatever is using the glyph has updated to the same version of Nerd Fonts that you are using. If not, they might be using deprecated glyph.
Clone this wiki locally