godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.84k stars 20.96k forks source link

Warnings use wrong character variants when `code_font_custom_opentype_features` are used #66351

Open Lielay9 opened 2 years ago

Lielay9 commented 2 years ago

Godot version

v4.0.beta1.official [20d667284]

System information

Windows 10, Vulkan, Nvidia 1050TI

Issue description

Warning/Error descriptions in the text editor do not respect character variants (Font: Firacode Variant: & (ss03)):

image

Not really a bug-bug, but it'd definitely be better if the descriptions matched the written code.

Steps to reproduce

  1. Get a font that has a character variants(example: Firacode)
  2. Set the font as interface/editor/code_font
  3. Enable and use the character variant (example Firacode: ss03):

image

Minimal reproduction project

No response

Calinou commented 2 years ago

This likely applies to the editor Output panel as well (and any other places where the code font is used, such as Expression fields in the inspector or visual shader editor).