Changes in editor to DynamicFontData
are not reflected in 2D view.
#27106
Labels
Milestone
DynamicFontData
are not reflected in 2D view.
#27106
Godot version:
master-branch, recent (775e74e)
Issue description:
When making changes to a
DynamicFontData
sub-resource in the inspector in the editor, the changes are not reflected visually in the 2D view, unless the editor is restarted or changes are made to unrelated properties inDynamicFont
. The bug is AFAICT editor-only.Steps to reproduce:
Label
.Label
Label
, create in "Custom fonts" aDynamicFont
.DynamicFont
, create in "Font -> Font data" aDynamicFontData
.DynamicFontData
, select in "Font Path" a font resource (for instance "FreeSans.ttf" as in the reproduction project).size
, inDynamicFont
, and check that the text is now drawn in the 2D view of the editor. You can also restart the project instead to get the text to be drawn.DynamicFontData
to not be antialiased.size
, inDynamicFont
, and check that the text in the 2D view now correctly is not antialiased.Minimal reproduction project:
A simple reproduction project with a font resource that makes it easier to follow the reproduction steps:
dynamicfontdata_bug.zip
Other comments:
The bug seems to occur due to changes being made directly to the
DynamicFontData
resource through the editor being not indicated to theDynamicFont
resource in the editor that uses theDynamicFontData
. I do not know whether similar bugs might occur or have occurred for similar cases.The text was updated successfully, but these errors were encountered: