# Disable font antialiasing

**URL:** <https://discourse.processing.org/t/disable-font-antialiasing/28792>\
**Category:** Coding Questions\
**Created:** [March 24, 2021, 12:58pm UTC](https://discourse.processing.org/t/disable-font-antialiasing/28792 "2021-03-24T12:58:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yeppii](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/yeppii/32/12180_2.png) [@yeppii](https://discourse.processing.org/u/yeppii)\
**Post date:** [March 24, 2021, 12:58pm UTC](https://discourse.processing.org/t/disable-font-antialiasing/28792/1 "2021-03-24T12:58:51Z")

</div>

I’m making a game using processing 3. I use a pixel art font. But when I set the font size to large values like 60 and 100 the font becomes blurry. I know this is because of anti-aliasing, but how do I disable it? I have disabled antialiasing for textures using `((PGraphicsOpenGL) g).textureSampling(2);` but it does not affect fonts. Any way to disable antialiasing for fonts?

---

<div class="post-metadata">

**Author:** ![tony](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tony/32/949_2.png) [@tony](https://discourse.processing.org/u/tony)\
**Post date:** [March 24, 2021, 5:09pm UTC](https://discourse.processing.org/t/disable-font-antialiasing/28792/2 "2021-03-24T17:09:31Z")

</div>

Have you checked out [noSmooth()](https://p5js.org/reference/#/p5/noSmooth)?

One caveat: Using this will disable aliasing for all objects drawn to the canvas. If its just the text you want non-aliased, perhaps you can draw it to a separate p5.Graphics object. LMK if it works! I haven’t tried it myself 😅
