Skip to content

TextRenderer refactor#2824

Merged
ZehMatt merged 6 commits intoOpenLoco:masterfrom
ZehMatt:textrendering-update
Jan 15, 2025
Merged

TextRenderer refactor#2824
ZehMatt merged 6 commits intoOpenLoco:masterfrom
ZehMatt:textrendering-update

Conversation

@ZehMatt
Copy link
Copy Markdown
Contributor

@ZehMatt ZehMatt commented Jan 14, 2025

No description provided.

@ZehMatt ZehMatt mentioned this pull request Jan 14, 2025
@duncanspumpkin
Copy link
Copy Markdown
Contributor

Are we confident nothing was using the wrap strings writing to the current font global? I think its fine can't think why you would rely on that.

@ZehMatt
Copy link
Copy Markdown
Contributor Author

ZehMatt commented Jan 14, 2025

Are we confident nothing was using the wrap strings writing to the current font global? I think its fine can't think why you would rely on that.

I think it should be fine, when it uses the stateless version to get string width it has to provide the font and when its used for the draw functions it typically sets it. I was playing a bit and didn't really notice any oddities, also in case its somewhere wrong it will be no big deal to address given we can look at just what window it is.

@ZehMatt ZehMatt force-pushed the textrendering-update branch from e8ae315 to 4300ee5 Compare January 14, 2025 11:24
@ZehMatt ZehMatt added this to the v24.12+ milestone Jan 14, 2025
@ZehMatt ZehMatt merged commit 81deb93 into OpenLoco:master Jan 15, 2025
@ZehMatt ZehMatt deleted the textrendering-update branch January 15, 2025 07:28
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.

3 participants