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
Height of text face not adjusting to wrapped text. #3861
Comments
some limits with "GdipMeasureString" Duplicate of #3760 |
Duplicate of #2757 |
temp solution bitbegin@13d0409 |
But a more immediate solution might be in passing planned face dimensions down the rabbit hole into |
See also #4557 |
That's @hiiamboris who wrote the code... |
Don't give me too much credit, I only replaced GDI measurement with GDI+ one. |
Root problem is that we mix GDI, GDI+ and D2D together. The initial version only use GDI and just one get-text-size call, no this twisted chain of calls. I think now we can get rid of GDI+. GDI is still needed as we use native control. |
What View/Draw features would we loose if we drop GDI+? |
GDI has no wrapping for it's text label at all IIRC. |
Nothing as we use D2D now.
Yes. That's the limitation of it. Working around it results in complex code. The native controls use GDI to draw the text. If we use GDI+ or D2D APIs to measure it, we'll get slightly different result. Which will cause other issues. |
I mean the reason we can write |
Use D2D for base face, yes, we already use it. I always has no problem with heavy solution. But I'm sure someone will do some benchmarks and complain about it later. For text face, see my note above. |
Are you using D2D for |
When text face induces wrap due to length exceeding text face width, height is not adjusted to accommodate the wrapped text below and text is cut off.
Example:
In rebol text face height will adjust to accommodate all the wrapped text.
Windows 10
All others not tested
The text was updated successfully, but these errors were encountered: