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

[Font] Allow overriding advances, offsets and kerning in the ImageFont import settings. #88088

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Feb 8, 2024

  • Adds support for setting custom ascent/descent.
  • Adds support for advances and offsets for the glyph ranges.
  • Adds support for kerning.

Currently, there's no convenient UI for setting values, but it can be added as an advanced import dialog.

Screenshot 2024-02-07 at 19 19 13

Bugsquad edit:

@bruvzg bruvzg added this to the 4.x milestone Feb 8, 2024
@bruvzg bruvzg marked this pull request as ready for review February 12, 2024 18:40
@bruvzg bruvzg requested review from a team as code owners February 12, 2024 18:40
Copy link
Contributor

@Mickeon Mickeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ooOOooooo making textured font addons less needed by the day. Exciting

doc/classes/ResourceImporterImageFont.xml Outdated Show resolved Hide resolved
doc/classes/ResourceImporterImageFont.xml Outdated Show resolved Hide resolved
Copy link
Contributor

@Mickeon Mickeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation is just fine. I cannot speak for the implementation itself.

The feature does enhance Bitmap fonts by a notable margin. It is also notably inspired by many existing 3.x addons that implement something similar. Most notably https://github.com/ElectronicBlueberry/Texture-Fonts.
It is of course extremely unfortunate that there's no dedicated UI that streamlines this process or completely overhauls it, but it is better than nothing.

@akien-mga akien-mga modified the milestones: 4.x, 3.x, 4.3 Feb 13, 2024
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good and the feature makes sense.

…t import settings. Fix bitmap font kerning override.
@akien-mga akien-mga merged commit 3252995 into godotengine:master Feb 13, 2024
16 checks passed
@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.

3 participants