1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Fix RichTextLabel: BBCode [color] tags are not counting in font char spacing

Each BBCode tag is drawn individually, so we have to add the character spacing manually.
This commit is contained in:
Marius Hanl
2022-11-12 21:02:54 +01:00
parent dc3d66bc8a
commit fa304b5130
4 changed files with 29 additions and 8 deletions

View File

@@ -1028,6 +1028,10 @@ int DynamicFont::get_spacing(int p_type) const {
return 0;
}
int DynamicFont::get_spacing_char() const {
return spacing_char;
}
void DynamicFont::set_spacing(int p_type, int p_value) {
if (p_type == SPACING_TOP) {
spacing_top = p_value;