Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing Custom Font's Dynamic Font's Font Data's Font Path doesn't refresh font on GUI node #47234

Closed
kuhnchris opened this issue Mar 21, 2021 · 1 comment

Comments

@kuhnchris
Copy link

Godot version:
3.3-rc6 (custom, Godot Engine v3.3.rc.custom_build.9a5776cd1 - https://godotengine.org )

OS/device including version:
ArchLinux
OpenGL ES 3.0 Renderer: AMD RENOIR (DRM 3.40.0, 5.11.6-arch1-1, LLVM 11.1.0)
OpenGL ES Batching: ON

Issue description:
Changing the font path (i.e. changing the font) in a RichTextLabel doesn't refresh the display

Steps to reproduce:

  • Add RichTextLabel
  • Enter some text
  • Add a Custom Fonts > Normal Fonts (New DynamicFont) > Font > Font Data (New DynamicFontData) > Font Path Object, i.e. select a custom font
  • Text gets properly refresh with new font
    image
  • Go to the Font Data and change Font Path, i.e. change to a different font:
    image
  • The font is not changed!
    image
  • Changing font size or other parameters does not load the proper font in, so it is "cached"
    image
  • Closing and reopening the scene fixes it, but it should be like this directly after changing the font!
    image

Minimal reproduction project:
godot-33rc6-dynfontpath.zip

@Calinou
Copy link
Member

Calinou commented Mar 21, 2021

Duplicate of #27106 (same cause).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants