Bog Roll ::

It's Not Magic, It's Work!

30 Nov 2019

Monospaced Font Features

Some modern fonts come with built-in features that allow you to select alternate glyph or activate or deactivate some ligatures. For example Source Code Pro puts a dot in the centre of the zero to mark it, but if you tell it, it you can have a slash instead. Fira Code is the reverse.

  • Fira Code - default
    The quick brown fox jumps the lazy black dog.
    (ilI1 0oO /@#$%&[]{}\!=->)
    0oO
  • Fira Code - zero
    The quick brown fox jumps the lazy black dog.
    (ilI1 0oO /@#$%&[]{}\!=->)
    0oO
  • Source Code Pro - default
    The quick brown fox jumps the lazy black dog.
    (ilI1 0oO /@#$%&[]{}\!=->)
    0oO
  • Source Code Pro - zero
    The quick brown fox jumps the lazy black dog.
    (ilI1 0oO /@#$%&[]{}\!=->)
    0oO

Which is only visible if you happen to have the fonts installed, and a browser that can do the rendering trick, but if you do then you will see the difference above. Most useful to know. I prefer slashed zeros, some people prefer the dot versions, and I particularly like the left to right slash, rather than the far more common right to left.