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

Draw the outline as part of the Label font shadow #30168

Merged
merged 1 commit into from
Jun 29, 2019

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Jun 28, 2019

This closes #30165. This also affects the legacy font outlines for completeness' sake, but one isn't supposed to use both at the same time 🙂

Note that the font outline used by the shadow will have the same color as the main font outline. I tried overcoming this limitation by using a second FontDrawer instance dedicated to the shadow, but this caused the shadow's main font area to draw on top of the main font's outline (which looks bad). Therefore, I just made sure to use the main FontDrawer everywhere.

Preview

In order:

  • DynamicFont outline only
  • Shadow only
  • Shadow and DynamicFont outline

Before

label_outline_shadow_before

After

label_outline_shadow_after

@akien-mga akien-mga added this to the 3.2 milestone Jun 29, 2019
@akien-mga akien-mga merged commit 9a99987 into godotengine:master Jun 29, 2019
@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.

Add ability for Font Drop Shadow to account for Outline thickness
2 participants