Skip to content

BBCode effects text kerning in RichTextLabels when it shouldn't #100800

Open
@SamInTheShell

Description

Tested versions

Tested in 4.3-stable

System information

Tested on Windows 10 and Fedora Linux 40

Issue description

Simply changing this line:

[color=gray]Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.[/color]

To this line:

[color=white]Lorem[/color] [color=gray]ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.[/color]

Results in alteration of the kerning for text rendered in a RichTextLabel.

Steps to reproduce

Pretty much what was stated in the description.

Minimal reproduction project (MRP)

An example project reproducing this issue can be found here: https://github.com/SamInTheShell/godot-bbcode-richtextlabel-kerning-bug

Press spacebar to toggle the text value.

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions