Creating a Monospace Font

Page Summary

  1. The site needs a monospace pixel font.
  2. Why? Cleaner code documentation.
  3. I attempt creating a monospace pixel font twice.
  4. I am satisfied with the second attempt.

Square Monospace Font

This font was made with Yal's Pixel Font Converter

Test 1

<style> .scrollable-window { width: 100%; height: auto; overflow-x: auto; border: 4px solid white; box-sizing: border-box; padding: 10px; margin-bottom: 60px; } .font-picture { width: 600px; display: block; margin: 10px auto 100px; image-rendering: pixelated; } /* setting colors */ h1, h2, h3, h4, h5, li, p { color: var(--purple_heart); } .div-border { border: solid 4px var(--purple_heart); box-sizing: border-box; margin-bottom: 100px; } @font-face { font-family: "Monospace Version 9-5"; src: url('/fonts/older-fonts/Dark\ Potion\ 27\ Monospace\ Regular-2026-09-05.ttf'); } @font-face { font-family: "Monospace Version 9-6"; src: url('/fonts/Dark-Potion-27-Monospace-Regular-2026-09-06.ttf'); } .monospace-version-9-5 { font-family: "Monospace Version 9-5"; color: white; } .monospace-version-9-6 { font-family: "Monospace Version 9-6"; color: white; } .scroll-window-header { background-color: white; padding: 5px; } .purple-window-header { background-color: var(--purple_heart); padding: 5px; } .scroll-window-header h3 { color: black; margin: 0; } @media (max-width: 600px) { .font-picture { width: 300px; } } </style>

Test 1 Result

Lowercase letters have too much space between them, which makes it hard to read.

Test 2 Settings

  • Tile height: 27
  • Tile width: 19
  • Letter width: 15
  • Removed characters that are uneeded in code:
    • Chinese tone vowels
    • Astrological

Test 2

<style> .scrollable-window { width: 100%; height: auto; overflow-x: auto; border: 4px solid white; box-sizing: border-box; padding: 10px; margin-bottom: 60px; } .font-picture { width: 600px; display: block; margin: 10px auto 100px; image-rendering: pixelated; } /* setting colors */ h1, h2, h3, h4, h5, li, p { color: var(--purple_heart); } .div-border { border: solid 4px var(--purple_heart); box-sizing: border-box; margin-bottom: 100px; } @font-face { font-family: "Monospace Version 9-5"; src: url('/fonts/older-fonts/Dark\ Potion\ 27\ Monospace\ Regular-2026-09-05.ttf'); } @font-face { font-family: "Monospace Version 9-6"; src: url('/fonts/Dark-Potion-27-Monospace-Regular-2026-09-06.ttf'); } .monospace-version-9-5 { font-family: "Monospace Version 9-5"; color: white; } .monospace-version-9-6 { font-family: "Monospace Version 9-6"; color: white; } .scroll-window-header { background-color: white; padding: 5px; } .purple-window-header { background-color: var(--purple_heart); padding: 5px; } .scroll-window-header h3 { color: black; margin: 0; } @media (max-width: 600px) { .font-picture { width: 300px; } } </style>

Test 2 Results

This version is more readable

Download my fonts here

Author:

Line Connection (Next post) Refining Monospace (Next related) Back to Flowchart Back to home