Skip to main content

This Blog is now Fixelized

·318 words·2 mins

I recently learned about a new font called Fixel, which was developed at MacPaw in collaboration with Ukrainian type foundry AlphaBravo.

The font is offered under an open license, and since I liked the fresh clean look and good readability combined with some distinctive characteristics1, I decided to fixelize this blog.

Here is a comparison side-by-side, with the right column (probably2) set in your system default font.

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.

Fixelizing a Hugo blog is achieved simply by

  • adding the actual font files to the static resources,
  • defining the font faces in a custom.css,
  • and setting a global default.

This is quick and easy, but certainly good enough for these pages. By modifying the tailwind css configuration and extending appropriate classes, the customization could be done in a more sophisticated way, for example using the Display type for headings, and applying the Text type only for body text.

@font-face {
    font-family: 'MacPawFixel';
    font-weight: normal;
    font-style: normal;
    src: url('/fonts/FixelText-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'MacPawFixel';
    font-weight: bold;
    src: url('/fonts/FixelText-Bold.woff2') format('woff2');
}


/* Change the default font */
html {
    font-family: 'MacPawFixel', -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
    'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
}

  1. It is a grotesque type, so basically a sans serif font with some quirks or unusual properties. Have a look at the letter g, for example. ↩︎

  2. to provide a working font on each system, I have used the system font stack, which iterates over font families until a locally available one is found. ↩︎