Pixel fonts are drawn on a grid. Every stroke, curve and diagonal is made of whole squares, and those squares are meant to land exactly on the pixels of your screen. When they do, the text is perfectly sharp. When they do not, each square of the design straddles two or more screen pixels, and the renderer has to guess. The result is the soft, smeary, slightly grey text that makes a pixel game look cheap.

The good news: blurry pixel text is almost never the font's fault. It comes from a handful of settings, and once you know them you can fix it in any engine in a few minutes. This guide explains the grid, the sizes that work, and the settings for Godot, Unity, GameMaker, Phaser and the web.

The words Cozy farm in the Puffbit pixel font rasterised at 20, 25, 30 and 40 pixels and magnified: 20, 30 and 40 pixels are perfectly sharp, 25 pixels has uneven strokes and grey edge pixels
Puffbit is drawn on a 10 px grid. At 20, 30 and 40 px every square lands on whole pixels. At 25 px the renderer has to split squares, and strokes come out uneven and grey. See Puffbit →

How the grid works

A digital font is stored as outlines in a design space called units per em, often 1000 or 2048 units. A pixel font is designed so that one square of its grid equals an exact number of those units. When you set the font at its grid size, one square becomes exactly one screen pixel. At twice the grid size, one square becomes a 2 × 2 block of pixels. At any whole multiple the squares still line up with the pixel grid of the screen.

Set it at 1.5 times the grid and every square becomes 1.5 pixels wide. A screen cannot light half a pixel, so the renderer either rounds (and squares come out uneven, some one pixel wide, some two) or anti-aliases (and the edges turn grey). Neither looks like pixel art.

Every pixel family on this site states its grid in the README and on its font page. Puffbit and Lorewick use a 10 px grid. Menuvale uses 18 px for its title style. Questbyte and Levelbit use 24 px. Cubeforge, with its big chunky cubes, uses 60 px. Note that the grid size is not always the cap height: the font size in pixels refers to the whole em, including space for accents above and descenders below.

The word Quest in the Questbyte pixel font rasterised at 24, 36 and 48 pixels and magnified: 24 and 48 are crisp, 36 is soft
Questbyte on its 24 px grid: 24 and 48 px are crisp, 36 px is not, even though it looks like a round number. See Questbyte Gold →

Picking the right size

Start from your game's base resolution, not from the final screen. Most pixel games render at a small internal resolution, such as 320 × 180 or 480 × 270, and scale the whole image up to the window. In that setup you choose the font size in game pixels: a 10 px grid font at size 10 gives text ten game pixels tall, and the integer scaling of the whole game takes care of the rest.

If your game renders at the full window resolution instead, choose the multiple that gives a comfortable reading size: for a 10 px grid on a 1080p screen, 20 or 30 px for body text and 40 to 60 px for titles. Keep a short list of allowed sizes in your UI style guide and do not let anyone type 25.

Turn off smoothing

Even at the right size, an engine can blur text in two places: when it rasterises the font (anti-aliasing) and when it draws the resulting texture (filtering). For pixel fonts you want neither.

  • Godot 4: on the font resource, set Antialiasing to None and Hinting to None, and turn Subpixel Positioning off. In Project Settings, set Rendering → Textures → Default Texture Filter to Nearest. For pixel-perfect scaling set the Stretch Mode to viewport and the Scale Mode to integer.
  • Unity: for TextMesh Pro, create the font asset with Render Mode set to RASTER (hinted) and Sampling Point Size equal to the grid or a multiple, then set the atlas texture's Filter Mode to Point. For the legacy Text component, set the font's Rendering Mode to Hinted Raster.
  • GameMaker: when adding the font, untick Anti-aliasing, and keep Interpolate colours between pixels off in the game options.
  • Phaser: set pixelArt: true in the game config (which turns off smoothing) and roundPixels: true, then use the BMFont pack with this.load.bitmapFont().
  • Web: font-size in a whole multiple of the grid, -webkit-font-smoothing: none and -moz-osx-font-smoothing: unset on macOS. Windows and Linux use the outline as drawn when the size is right.
A bright pixel game title screen reading Level 1 in layered pixel letters with a red extrude, a Start, Load and Options menu, and a HUD with hearts and a score
Levelbit for the title, Lorewick for the menu and HUD, both at whole multiples of their grids. See Levelbit →

Snap positions to whole pixels

The third cause of blur is position. If a label sits at x = 101.5, every pixel of the text is half on one screen pixel and half on the next. This happens easily with centred text (half of an odd width is a fraction), with UI anchored to percentages, and with text that follows a moving camera.

  • Round positions after you centre text: floor((width − textWidth) / 2).
  • In Godot, turn on Snap 2D Transforms to Pixel and Snap 2D Vertices to Pixel in Project Settings.
  • In Unity, use the Pixel Perfect Camera component (URP 2D) and make sure the UI canvas uses the same reference pixels per unit.
  • On the web, avoid transforms like translate(-50%) on pixel text; use grid or flex centring, which rounds to whole pixels.

Bitmap fonts: the safe option

When an engine gives you no control over font rasterisation, use bitmap fonts. A BMFont is a PNG atlas holding every character as an image, plus a .fnt descriptor with positions, advances and kerning pairs. The engine copies pixels from the atlas instead of rendering outlines, so nothing can blur as long as filtering is off and the scale is whole.

Every pixel family here includes a BMFont pack exported at several whole scales of its grid (usually 1×, 2× and 4×, where 1× means one screen pixel per font pixel), drawn straight from the pixels with no smoothing and with kerning included. The glyphs are white, so you tint them in the engine. For layered pixel fonts such as Questbyte, each layer has its own atlas: draw them at the same position from bottom to top, each with its own tint, exactly like layers in a design app.

The Questbyte Gold pixel font shown layer by layer: Extrude, Outline, Face, Bands, Shade, Highlight and Glint tiles, and the finished gold pixel letters Qb below
Questbyte Gold is seven pixel layers. In an engine, each one is a tinted copy of the same string. See Questbyte Gold →

Designing UI with pixel fonts

Pixel fonts have fixed shapes, so you design around them rather than the other way round. A few habits help:

  • Line height in whole pixels, usually the grid plus 2 to 4 pixels for body text.
  • Padding in multiples of the same unit as the font's grid, so boxes and text align.
  • Tabular figures (or a monospaced font) for scores and timers, so numbers do not jump as they change.
  • One accent colour for highlights instead of bold, since a fake bold on a pixel font breaks the grid. Use the family's real Bold style when it has one.
  • Outlines or shadows as separate layers or a second font, not as an engine effect that adds blur.
Nine pixel fonts on their own backgrounds: Questbyte Gold, Chrome and Stone, Levelbit, Menuvale, Cubeforge, Puffbit, Lorewick and Spurline
Nine pixel families, each with its own grid: from tiny 10 px dialogue fonts to 60 px cubes.

Checklist

  1. Find the font's grid size in its README.
  2. Use that size or a whole multiple, never in between.
  3. Turn off anti-aliasing and set texture filtering to nearest.
  4. Snap text and camera positions to whole pixels.
  5. Scale the whole game by integers.
  6. Fall back to the BMFont pack if the engine still blurs.
Check the grid before you buyEvery pixel font page lists its grid and the crisp sizes, and the tester shows the font at those sizes.Browse pixel fonts

Frequently asked questions

Why does my pixel font look blurry?

Usually one of three things: it is set at a size that is not a multiple of its grid, the engine is smoothing the texture (bilinear filtering), or the text sits at a fractional position. Fix all three and it will be sharp.

What size should I use for a pixel font?

The size its README gives as the base grid, or a whole multiple of it. A font built on a 10 px grid is crisp at 10, 20, 30 and 40 px. A font on a 24 px grid is crisp at 24, 48, 72 and 96 px.

Can I use pixel fonts on a website?

Yes. Set the size to a multiple of the grid in CSS pixels and add -webkit-font-smoothing: none on macOS. On high-density screens the text is scaled by the device pixel ratio, which is usually 2 or 3, so it stays crisp.

Do pixel fonts support accents and other languages?

The families on FontArena cover Latin for 40+ languages, with accents drawn on the same grid so they stay sharp. Scripts such as Cyrillic, Greek or Japanese need a separate font.