You've already forked godot
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user