You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: This is a bug in the "Detect pixel fonts and disable subpixel positioning" feature introduced in 4.4.dev1 (#94609). The bug is reproducible in all 4.4 dev builds, and is not applicable in 4.3.
When importing a pixel font, Godot disables subpixel positioning. However, the import dialog still shows a warning that subpixel positioning is enabled. It is unclear if the consequences of the warning (pre-rendering glyphs for multiple offsets) actually happens or if it's just a spurious warning, but it is confusing nonetheless.
Copy the font into the project directory and have Godot import it. Godot prints a message "res://Kenney Mini.ttf: Pixel font detected, disabling subpixel positioning."
Double-click the font to see its import dialog. The dialog shows that "Subpixel positioning" is set to "Disabled" (as the import message suggests), but underneath is a yellow warning: "Note: Subpixel positioning is selected, each of the glyphs might be pre-rendered for multiple subpixel offsets (up to 4x)."
Note that clicking Reimport does not fix the warning. However, changing Subpixel Positioning to Auto, then clicking Reimport, then changing Subpixel Positioning back to Disabled, then clicking Reimport again, makes the message go away.
So the default import state is setting subpixel_positioning to 4 which is a value that is inaccessible from the drop-down. Manually changing it to Auto then Disabled (reimporting in between each change) explicitly sets it to 0 which means Disabled.
Tested versions
Note: This is a bug in the "Detect pixel fonts and disable subpixel positioning" feature introduced in 4.4.dev1 (#94609). The bug is reproducible in all 4.4 dev builds, and is not applicable in 4.3.
System information
Godot v4.4.beta2 - Ubuntu 24.04.1 LTS 24.04 on X11 - X11 display driver, Multi-window, 2 monitors - OpenGL 3 (Compatibility) - NVIDIA GeForce GTX 1060 6GB (nvidia; 535.183.01) - Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz (4 threads)
Issue description
When importing a pixel font, Godot disables subpixel positioning. However, the import dialog still shows a warning that subpixel positioning is enabled. It is unclear if the consequences of the warning (pre-rendering glyphs for multiple offsets) actually happens or if it's just a spurious warning, but it is confusing nonetheless.
Steps to reproduce
Note that clicking Reimport does not fix the warning. However, changing Subpixel Positioning to Auto, then clicking Reimport, then changing Subpixel Positioning back to Disabled, then clicking Reimport again, makes the message go away.
Minimal reproduction project (MRP)
subpixel-repro.zip
The text was updated successfully, but these errors were encountered: