-
Notifications
You must be signed in to change notification settings - Fork 414
FEAT: view's size-string function for measuring text without face object #4218
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is OK for Windows backend.
modules/view/backends/platform.red
Outdated
] | ||
pair: as red-pair! stack/arguments | ||
pair/header: TYPE_PAIR | ||
gui/get-text-size null text hFont pair |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gui/get-text-size
cannot handle null face on Non-Windows platforms.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! working on it.
I'll force-push it out of here after resolving the issues.
I've tried to fix the issues and update the code for latest master. Unfortunately, there is a bug I cannot track down. With debug
I don't understand why I get 37 (which is TYPE_PAIR) as a |
1ec06cd
to
7218fb4
Compare
An attempt to deal with #4179.
I had problems with merging master into #4182. Now it's done on a separate branch.