Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Complex Text Layouts] Add drop-cap support to RTL. #43691

Merged
merged 1 commit into from
Dec 29, 2020

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Nov 19, 2020

Implements thus closes godotengine/godot-proposals#1838

Screenshot 2020-11-20 at 09 34 02

Adds [dropcap font=name font_size=72 color=red margins=0,0,0,0 outline_size=2 outline_color=blue]AB[/dropcap] tag, all options can be omitted.

Margins can be used to add extra offset (positive), or cut excessive font ascent/descent (negative):
Screenshot 2020-11-20 at 09 39 00
Or add raised lines and outdent (indent whole paragraph and add negative left margin):
Screenshot 2020-11-20 at 09 52 25

@bruvzg bruvzg added this to the 4.0 milestone Nov 19, 2020
@bruvzg bruvzg force-pushed the ctl_dropcap branch 2 times, most recently from 26232f2 to e0bfc1b Compare November 20, 2020 11:41
@golddotasksquestions
Copy link

This is amazing!!! Thank you so much, I can't wait to work on my project using this feature!

@bruvzg bruvzg force-pushed the ctl_dropcap branch 8 times, most recently from c803c31 to 3606784 Compare December 2, 2020 07:58
@bruvzg bruvzg changed the title [Complex Text Layouts, WIP] Add drop-cap support to RTL. [Complex Text Layouts] Add drop-cap support to RTL. Dec 3, 2020
@bruvzg bruvzg marked this pull request as ready for review December 3, 2020 08:39
@bruvzg bruvzg requested a review from a team as a code owner December 3, 2020 08:39
@bruvzg bruvzg force-pushed the ctl_dropcap branch 6 times, most recently from 5aef2f2 to 34f1905 Compare December 13, 2020 12:43
@bruvzg bruvzg force-pushed the ctl_dropcap branch 2 times, most recently from 4778139 to 30c6e18 Compare December 13, 2020 19:06
@akien-mga akien-mga merged commit 652bdd5 into godotengine:master Dec 29, 2020
@akien-mga
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

RichTextLabel: Add Initials / Drop Caps support
3 participants