-
Notifications
You must be signed in to change notification settings - Fork 3.6k
FAQ and Troubleshooting
- What does it look like?
- How do I report issues?
- What are all these variations?
- Which font do I want?
- How do I use glyphs in my terminal
- Why do the glyphs look small, squished, or not full width?
- Why do some of the fonts names appear incorrect or appear to have typos?
- What do these acronym variations in the font name mean:
LG
,L
,M
,S
,DZ
,SZ
? - Why isn't my favorite font included (already patched)?
- Error: munmap_chunk(): invalid pointer
- segmentation fault running patcher
- Font patching debugging
see Screenshots
see: Reporting Issues
-
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).
Once you narrow down your font choice of family (Droid Sans
, Inconsolata
, etc) and style (bold
, italic
, etc) you have 2 main choices:
For a stable version download a font package from the release page
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
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
).
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
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)
- 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
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.
-
Input Mono (license restriction)
- Possibly coming with external hosting :)
- PragmataPro (not free)
- Consolas (proprietary)
Most fonts you can freely modify on your own so feel free to try patching them on your own :)
[Font Patcher Py3] Error in python3': munmap_chunk(): invalid pointer
For the original details on the solution: comment on #129
Original Issue Reference: #129
-
Option 1:
Downgrade Python to3.5.2-3
and FontForge to20161012-2
ref
-
Option 2:
Update to the latest FontForge version (issue has been fixed in recent versions)ref
-
Option 3:
Installaur/python35
instead of downgrading Pythonref
segmentation fault
For the original details on the solution: comment on #8
Original Issue Reference: #8
-
Option 1:
Update FontForge and/or Python 2.x on macOS (OSX) -
Option 2:
Patch font on Linux
The font you patched is looking having some issues.
- You did take a backup of your old patched font before patching it again, didn't you?
- Look at the output of
font-patcher
after adding--debug 2
. Is there anything there that hints to the issue you are experiencing? - 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
withxxxx
being the 4 digit hexadecimal codepoint you found from the above. This will tell you where the glyph is coming from. - nerdfix might be helpful. Although, fixing upstream is always better.
- 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.
This Wiki and the Readme contains a lot of information, please take your time to read the information.
If you run into any trouble, please start by looking in the FAQ and if you still need help you can visit the Gitter Chat.
There is a heavily detailed Changelog and Release changes.
Be sure to read the Contributing Guide before opening a pull request to Nerd Fonts.
If you have any questions about the Nerd Fonts usage or want to share some information with the community, please go to one of the following places: