Skip to content
Discussion options

You must be logged in to vote

@keasy9 Good question! With super low resolution (less than 500x500) you don't have a lot of actual pixels to place a font after sampling a font. Unless you carefully align the font and size it so that the pixels line up with the canvas you'll run into sampling artifacts.

There are a few options that work pretty well for low resolution:

  1. Artificially scale the canvas to give you more pixels (try pixelRatio: 5 that'd get you above 500x500), your logical resolution will remain the same.
  2. Artificially scale the sprite font to give you more pixels to sample
  3. Snap the game to pixels (camera/actors) and align things on pixel boundaries

I have some prose about it here that might also be helpful h…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@keasy9
Comment options

@eonarheim
Comment options

Answer selected by keasy9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants