What does --variable-width-glyphs do now? #1103
Replies: 1 comment 7 replies
-
Thanks for the question. You are right this is a bit shady and an all-encompassing explanation is nowhere in sight. Let me first explain the current (or near future) state and afterwards some historical information. Nerd Fonts variantsDepending on what you want to do the added symbols needed to be patched-in in different ways. At the moment there are three major different flavors:
This all revolves arount 'monospaced'. What is a 'monospaced' font? One where all characters (font people call them glyphs) are exactly the same width. Like on an old style typewrite (if you are that old). The characters form some kind of grid, and regardless of which letters you type, on consecutive lines the 23rd letter is exactly above the other 23rd letter. In this example the upper text is set in a monospaced font, the lower in a not monospaced font: Note that all letters line up nicely on the pink line with the monospaced font, but not for the non-monospaced one. Also note the different relative length of line 2 and 3, where line 3 has more 'narrow' letters like Having a monospaced font is something a lot programmers like, because multi-line code often looks better this way. So what are the Nerd Font flavors' differences and use-cases? Nerd Font MonoThese variant is only available when the source font is monospaced. In the example above two characters (one
The font is for programmers or other people that want a fixed and dependable grit of letters. Nerd FontIcons too small? We can scale the icons to a bigger size (limited to 2 cells wide (and 1 cell high)) with this font. As you see this only looks good if the 'cell' after the symbol is empty.
Note that they do not 'occupy' the next cell. In principle we could also create a font were the symbols are '2 cells wide'. But that would not be detected as 'monospaced' anymore. It will break your carefully vertically aligned tables when a 1 cell glyph is replaced by a 2 cell glyph. This font is for programmers and other people that want a grid and big symbols, and can accept strange overhanging glyphs Nerd Font PropoBut sometimes you are not bound by any 'grid'. You edit slides for a talk or want to use symbols in GUI contexts. Here you want bigger symbols but the 'advance width' should match the visual width of the symbol. The font has many different widths, matching the individually different symbols and is thus not 'monospaced' but a proportional font (that is the opposite of 'monospaced') It looks like the grid is preserved, at least when looking at line 2 and 3, but line 4 shows that they just both break the grid with the same amount.
This font is for usage in proportional contexts like text documents or GUI text elements Historyup to and including
|
Beta Was this translation helpful? Give feedback.
-
Hi! I understand that in the latest release all glyphs are made to be either single-width or double-width; if I remember correctly
--variable-width-glyphs
was supposed to let glyphs take its full width or something(?), so what does the option do now? Just asking for some clarity on the matter, thanks in advance!Beta Was this translation helpful? Give feedback.
All reactions