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

Migrate Item details to DirectWrite #947

Merged
merged 2 commits into from
Aug 19, 2024
Merged

Migrate Item details to DirectWrite #947

merged 2 commits into from
Aug 19, 2024

Conversation

reupen
Copy link
Owner

@reupen reupen commented Aug 17, 2024

Resolves #929

This makes the Item details panel render text using DirectWrite rather than Uniscribe.

All the custom text layout and word wrapping code has been removed as DirectWrite handles this natively.

Note that, currently, it's only possible to specify GDI-compatible fonts using the $set_font() title formatting function. ($set_font() does now accept non-integer font sizes, however.)

@reupen reupen force-pushed the item-details-directwrite branch 4 times, most recently from a92ccaf to 33ae453 Compare August 19, 2024 17:47
This makes the Item details panel render text using DirectWrite rather than Uniscribe.

All the custom text layout and word wrapping code has been removed as DirectWrite handles this natively.

Note that, currently, it's only possible to specify GDI-compatible fonts using the `$set_font()` title formatting function. (`$set_font()` does now accept non-integer font sizes, however.)
Make them use `s_` as a prefix rather than `g_`.
@reupen reupen marked this pull request as ready for review August 19, 2024 18:35
@reupen reupen merged commit 99b38af into main Aug 19, 2024
7 checks passed
@reupen reupen deleted the item-details-directwrite branch August 19, 2024 18:36
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.

Use DirectWrite in Item details panel
1 participant