Pixel Perfect font for 144 x 160 game

I’m making a Gameboy style pixel-art game that runs at 144 x 160 (the screen resolution of the original Gameboy). I’m looking for a font that uses an 8x8 character set to get pixel perfect text in the game and I’ve found some that claim to be 8x8, but I can’t get any of them to look pixel-perfect.

I want the font to be used in a UI.Text element that sits under a canvas object.

Has anyone come across this situation? And if so, do you know of any useable fonts and how to set them up to be pixel-perfect?

Thanks,
Matt

Yeah it’s possible, but it is a bit of a hassle to setup. Let me go through my project settings. :slight_smile:

First you have to import TextMesh Pro, which is free now. If you want to use Unity’s rendering, it will look ugly on lower resolutions.

Next is the Canvas:

  1. Render Mode: Screen Space - Camera
  2. Pixel Perfect: Yes
  3. Render Camera: Link up your camera (make sure the size orthographic size is setup correctly for your target resolution)
  4. Canvas Scaler: Scale with screen size, reference resolution = 144x160, reference pixels per unity: 1

When using the text elements, make sure the size of the font is exactly the design size of the find, ie. 8 in your case, or it will look wonky.

2 Likes

Oh, great. I think i’ve got it working with TextMesh Pro. Thanks for the guide der_r

1 Like