Different font size in same Label

Godot Version

Godot 4.2 stable

Question

As the question states I am trying to find a way to combine different font sizes in the same label. I have attached a screenshot on what I want to achieve, which should help a lot to explain.

Right now I am doing so via two different labels and a HBoxContainer. However when loading in different languages the first letter might change, changing the size required etc. This can all be solved, but I was wondering if I am missing a smarter solution here and one can somehow adjust the font size via code for only part of the displayed text - e.g. just the first letter.

Many thanks for any hints!

Screenshot 2024-10-03 211642

RichTextLabel has a dropcap feature thanks to BBcode :slight_smile:
See BBCode in RichTextLabel — Godot Engine (stable) documentation in English

3 Likes

aaaaaand this is 100% what i was looking for. You are amazing - thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.