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

Bugfix/Font-wrap-wrong #287

Merged
merged 1 commit into from
Jan 14, 2024
Merged

Bugfix/Font-wrap-wrong #287

merged 1 commit into from
Jan 14, 2024

Conversation

JucanAndreiDaniel
Copy link
Contributor

Fix glyph metrics to have the glyphs with the right orientation and fix all labels from main menu

To test

  1. Open main menu and check if text looks the same
  2. Create a label with a lot of text so that it wraps and check if text orientation is fine

@JucanAndreiDaniel JucanAndreiDaniel added the bug Something isn't working label Jan 10, 2024
@JucanAndreiDaniel JucanAndreiDaniel self-assigned this Jan 10, 2024
@JaXt0r
Copy link
Contributor

JaXt0r commented Jan 14, 2024

I tested your feature. Is this the intended outcome? If you can share a before - after image, then I can test better.
image

horizontalBearingX = 0,
horizontalAdvance = w
},
index = (uint)i,
sprite = newSprite
sprite = newSprite,
scale = -1
Copy link
Contributor

Choose a reason for hiding this comment

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

Why a scale of -1? Sounds wrong tbh.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hm. Seems you flip about every text element. Why?

@JucanAndreiDaniel
Copy link
Contributor Author

I tested your feature. Is this the intended outcome? If you can share a before - after image, then I can test better. image

This is intended

before
image

after

image

these are taken from the discord where i posted what was the issue

@JucanAndreiDaniel JucanAndreiDaniel merged commit 6fd522d into main Jan 14, 2024
2 checks passed
@JucanAndreiDaniel JucanAndreiDaniel deleted the bugfix/font-wrap-wrong branch January 14, 2024 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants