Skip to content

Font Substitution & Fallback

Fini Jastrow edited this page Oct 17, 2022 · 4 revisions

Nerd Fonts

In general Patched Fonts are not necessary required, because several systems support font substitution and/or Fallback fonts

Windows

The EUDC feature of Windows can be used to define a fall-back font that will be used for Glyphs that are not found in the current font. This means that a single Nerd Font can be installed on a Windows machine, and the Nerd Font glyphs will then be shown for all other fonts in the system without need for patching other fonts.

Info on EUDC can be found here: https://msdn.microsoft.com/en-us/library/windows/desktop/dd317836(v=vs.85).aspx

Example usage

Windows Registry Editor Version 5.00
;
; More info here: https://msdn.microsoft.com/en-us/library/windows/desktop/dd317836(v=vs.85).aspx
;
[HKEY_CURRENT_USER\EUDC\1252]
"SystemDefaultEUDCFont"="Hack Nerd Font Complete Windows Compatible.ttf"

Adapted from @sharkusk's issue, for complete context see: https://github.com/ryanoasis/nerd-fonts/issues/159

Linux

Leveraging Fontconfig

see: https://github.com/ryanoasis/nerd-fonts/blob/-/10-nerd-font-symbols.conf