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

Fix spaces occupancy in TTF::PrepareString #15971

Merged
merged 5 commits into from
Jul 3, 2024
Merged

Conversation

couet
Copy link
Member

@couet couet commented Jul 2, 2024

As discussed in GitHub issue #15948, there was a problem in the TTF::PrepareString function where the length of trailing white spaces was not being computed correctly. This issue led to inaccuracies in text rendering, as the function failed to account for the correct width of trailing white spaces in the provided strings.

@couet couet self-assigned this Jul 2, 2024
@couet couet requested a review from linev July 2, 2024 14:03
…icated in two locations. This commit refactors it to improve code reusability and maintainability.
@couet couet requested a review from linev July 2, 2024 15:11
Copy link

github-actions bot commented Jul 2, 2024

Test Results

    13 files      13 suites   2d 20h 52m 56s ⏱️
 2 651 tests  2 651 ✅ 0 💤 0 ❌
32 645 runs  32 645 ✅ 0 💤 0 ❌

Results for commit 00a337c.

♻️ This comment has been updated with latest results.

@couet couet requested a review from dpiparo as a code owner July 3, 2024 06:23
@couet couet merged commit a9d4a0e into root-project:master Jul 3, 2024
17 of 18 checks passed
silverweed pushed a commit to silverweed/root that referenced this pull request Aug 19, 2024
* Fix spaces occupancy in TTF::PrepareString

* The code responsible for computing the Trailing Blanks Width was duplicated in two locations. This commit refactors it to improve code reusability and maintainability.

* stressGraphics reference files need a minor adjustement

* Move fgTBlankW initialisation

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

Successfully merging this pull request may close these issues.

2 participants