Free Monospace Fonts
General Information
A monospaced (non-proportional) font is a font in which all characters (points of characters) have the same width.
Font comparison
There are several sites that compare programming fonts for the breadth of different characters they cover.
- https://mono-math.netlify.app/ - mathematical symbols in monospace fonts.
- https://devfonts.gafi.dev/ - fonts for programming.
- https://www.programmingfonts.org/ - fonts for programming.
- https://coding-fonts.css-tricks.com/ - fonts for programming.
At the moment, the JuliaMono
font contains the largest number of mathematical symbols.
Applicability
- It is advisable to choose a font for an editor (for example, emacs) with italics. Otherwise, a certain set of text selections is lost.
- Also, for semantic italics, various programs with text interfaces are used (for example, the kitty terminal emulator ).
- If the font has a variable character width, then tables are used.
Activation of ligature in fonts
LaTeX
When using LuaTeX and XeTeX, ligatures are enabled with the option Contextuals=Alternatepackage fontspec:
\usepackage{fontspec}
\setmonofont{FontName}[Contextuals=Alternate]
Fonts with ligatures
Some programming fonts contain ligatures.
Fira Code
The font is based on Fira Mono.
Repository: https://github.com/tonsky/FiraCode
Author: Nikita Prokopov
- Blog in English: https://tonsky.me/
- Properties
- License: SIL Open Font license
- Ligatures: yes
- Italic: no
Iosevka
Site: https://typeof.net/Iosevka/ Repository: https://github.com/be5invis/Iosevka/ Design based on:
- PragmataPro,
- PF DIN Mono.
- The font is pseudo-proportional, so tables designed in this font move apart. (Fixed in version 10).
- Has a narrow design.
- Properties
- License: SIL Open Font license
- Ligatures: yes
- Italics: yes
Options
For all options, the packages contain three interval options.
- Default : Default option with ligatures. Also contains wide (2 column) symbols (such as arrows).
- Terminal (Term) : A narrower variant for terminal. Arrows and geometric symbols will be narrow.
- Fixed : monospaced font without ligatures and wide glyphs.
Some environments do not treat Iosevka or Iosevka Term as monospace fonts and cannot handle ligatures.
Drawings
- Iosevka : Monospace, Default.
- Iosevka Slab : Monospace, Slab-serif.
- Iosevka Curly : Monospace, Curly Style.
- Iosevka Curly Slab : Monospace, Curly Style, Slab-serif.
- Iosevka Aile : Quasi-proportional, Sans-serif.
- Iosevka Etoile : Quasi-proportional, Slab-serif.
JetBrains Mono
Website: https://www.jetbrains.com/lp/mono/
Properties
- License: SIL Open Font license
- Ligatures: yes
- Italics: yes
JuliaMono
A fairly complete set of mathematical symbols:
- https://mono-math.netlify.app/#JuliaMono
- https://coding-fonts.css-tricks.com/fonts/juliamono/?language=charmap
- Website: https://juliamono.netlify.app/
- Repository: https://github.com/cormullion/juliamono
Properties
- License: SIL Open Font license
- Ligatures: yes
- Italic: no
LaTeX
Usage in LuaLaTeX and XeLaTeX:
\usepackage{fontspec}
\newfontfamily\JuliaMono{JuliaMono}[
Path=./fonts/,
UprightFont=*-Regular,
BoldFont=*-Bold,
Extension=.ttf]
\newfontface\JuliaMonoRegular{JuliaMono-Regular}
\newfontface\JuliaMonoBold{JuliaMono-Bold}
\setmonofont{JuliaMono-Medium}[
Contextuals=Alternate,
Scale=0.8]
Here the fonts are located in the local directory ./fonts
.
Depending on the typeface of the main text for the code, you can use it instead of the typeface JuliaMono-Mediumset JuliaMono-Light.
Style for listings:
Dangerous
Made on the basis of Source Code Pro with the addition of ligatures.
Repository: https://github.com/i-tu/Hasklig
Properties
- License: SIL Open Font license
- Ligatures: yes
- Italic: no
Cascadia Code
Designed for Windows Terminal.
Repository: https://github.com/microsoft/cascadia-code
Properties
- License: SIL Open Font license
- Ligatures: yes
- Italic: no
Victor Mono
Site: https://rubjo.github.io/victor-mono/
Repository: https://github.com/rubjo/victor-mono
Tables designed in this font are moving apart. Has a narrow design.
Properties
- License: MIT
- Ligatures: yes
- Italics: yes
Fonts with icons
Font Awesome
The most famous font with icons.
Font Awesome Pro
- https://fontawesome.com/pro
- Distributed by paid subscription.
Font Awesome Free
- https://github.com/FortAwesome/Font-Awesome
- License:
- Icons: CC BY 4.0
- Fonts: SIL Open Font license
- Program code: MIT
To use the font, you can use the list of icon codes https://fontawesome.com/cheatsheet .
Nerd fonts
Project to add different fonts for additional glyphs (mostly icons).
Website: https://www.nerdfonts.com/
Repository: https://github.com/ryanoasis/nerd-fonts/
Glyph search: https://www.nerdfonts.com/cheat-sheet
Fonts
Source Code Pro
Part of the Source Pro suite.
Site: http://adobe-fonts.github.io/source-code-pro/
Repository: https://github.com/adobe-fonts/source-code-pro
Properties
- License: SIL Open Font license
- Ligatures: no
- Italics: yes
Anonymous Pro
Site: https://www.marksimonson.com/fonts/view/anonymous-pro
Properties
- License: SIL Open Font license
- Ligatures: no
- Italics: yes
Hack
Repository: https://github.com/source-foundry/Hack
Properties
- License: MIT
- Ligatures: no
- Italics: yes
Hermit
Website: https://pcaro.es/p/hermit/
Repository: https://github.com/pcaro90/hermit
The tables he designed are scattered.
Properties
- License: SIL Open Font license
- Ligatures: no
- Italics: yes