# Completely Pixelated Font in JavaScript Canvas?

I'm making a game with a canvas scaled up such that each pixel is pretty big. I want to display some pixelated text without anti-aliasing but I have idea how I would accomplish this.

Is there I way can do such a thing?

• How are you drawing your text so far? – DMGregory Jun 3 at 14:41
• Have you considered to just use a pixely font? – Philipp Jun 3 at 19:54
• I'm using ctx.fillText(), and ctx.font to style it. I would use a custom font but I don't know how to draw custom fonts into the canvas. – mushrombrother.jpg Jun 4 at 14:55
• Update: I've figured out how to import a custom font and draw it to the canvas, but there is still an anti-aliasing effect. – mushrombrother.jpg Jun 4 at 15:25
• I've found the solution! you need to disable font smoothing for all elements in the css. – mushrombrother.jpg Jun 4 at 15:40

canvas{