From 4ede32b7a454edc88de40aa57a1e5bf125e22903 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Mon, 15 May 2023 17:15:29 +0200 Subject: [PATCH 1/2] Document font size caveats for pixel art fonts in Using fonts --- tutorials/ui/gui_using_fonts.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tutorials/ui/gui_using_fonts.rst b/tutorials/ui/gui_using_fonts.rst index 6efce1e3113..f07314ce66e 100644 --- a/tutorials/ui/gui_using_fonts.rst +++ b/tutorials/ui/gui_using_fonts.rst @@ -145,7 +145,9 @@ property that accepts a Font resource. Fonts that have a pixel art appearance should have bilinear filtering disabled by changing the **Rendering > Textures > Canvas Textures > Default Texture Filter** - project setting to **Nearest**. Otherwise, the font may appear to look blurry. + project setting to **Nearest**. The font size must also be an integer multiple of the + design size (which varies on a per-font basis), and the Control node using the font + must be scaled by an integer multiple as well. Otherwise, the font may appear to look blurry. The texture filter mode can also be set on individual nodes that inherit from CanvasItem by setting :ref:`CanvasItem.texture_filter `. From 7dcd5236f582df089cc00a2f46e55f013ae87d64 Mon Sep 17 00:00:00 2001 From: Max Hilbrunner Date: Tue, 16 May 2023 10:20:01 +0200 Subject: [PATCH 2/2] Update tutorials/ui/gui_using_fonts.rst --- tutorials/ui/gui_using_fonts.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/ui/gui_using_fonts.rst b/tutorials/ui/gui_using_fonts.rst index f07314ce66e..cb23738347c 100644 --- a/tutorials/ui/gui_using_fonts.rst +++ b/tutorials/ui/gui_using_fonts.rst @@ -147,7 +147,7 @@ property that accepts a Font resource. by changing the **Rendering > Textures > Canvas Textures > Default Texture Filter** project setting to **Nearest**. The font size must also be an integer multiple of the design size (which varies on a per-font basis), and the Control node using the font - must be scaled by an integer multiple as well. Otherwise, the font may appear to look blurry. + must be scaled by an integer multiple as well. Otherwise, the font may look blurry. The texture filter mode can also be set on individual nodes that inherit from CanvasItem by setting :ref:`CanvasItem.texture_filter `.