Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix Bounding Box Calculation #859

Merged
merged 2 commits into from
Jan 17, 2025
Merged

Conversation

CryZe
Copy link
Collaborator

@CryZe CryZe commented Jan 17, 2025

At some point when changing our text engine, we introduced a scale value for each individual glyph, possibly during the transition to cosmic-text. This is correctly being used when rendering the text, but not when calculating the bounding box of the text. This meant that for certain fonts the dirty region of the image, that is cleared on each frame, was not calculated correctly and thus the previous text was still visible.

At some point when changing our text engine, we introduced a scale value
for each individual glyph, possibly during the transition to
`cosmic-text`. This is correctly being used when rendering the text, but
not when calculating the bounding box of the text. This meant that for
certain fonts the dirty region of the image, that is cleared on each
frame was not calculated correctly and thus the previous text was still
visible.
@CryZe CryZe added bug There is a bug. enhancement An improvement for livesplit-core. rendering The issue or pull request is affecting the rendering. priority: high This is a high priority issue. text engine This is about the text engine implementation. labels Jan 17, 2025
@CryZe CryZe added this to the v0.14 milestone Jan 17, 2025
@CryZe CryZe enabled auto-merge (squash) January 17, 2025 16:23
@CryZe CryZe disabled auto-merge January 17, 2025 16:24
@CryZe CryZe enabled auto-merge (squash) January 17, 2025 16:24
@CryZe CryZe disabled auto-merge January 17, 2025 16:53
@CryZe CryZe enabled auto-merge January 17, 2025 16:54
It got renamed to mention the version number in the target name.
@CryZe CryZe force-pushed the bounding-box-calc branch from c99295b to 14e7900 Compare January 17, 2025 17:06
@CryZe CryZe disabled auto-merge January 17, 2025 17:06
@CryZe CryZe enabled auto-merge (squash) January 17, 2025 17:06
@CryZe CryZe merged commit a6a2881 into LiveSplit:master Jan 17, 2025
70 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug There is a bug. enhancement An improvement for livesplit-core. priority: high This is a high priority issue. rendering The issue or pull request is affecting the rendering. text engine This is about the text engine implementation.
Projects
Development

Successfully merging this pull request may close these issues.

1 participant