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
Long lines are overlapping help box when Region Overlap enabled #88
Comments
|
Actually not, I don't believe it has to do with the spacing. Instead I believe it's because we're not account for individual words when wrapping. |
|
I still get a lot of overlap: http://cl.ly/dQhf |
|
Ah! It is only an issue when the |
|
it seems that this bug was a problem with settings. @carter2422, when you figure out which setting caused this, let em know so we can report it to blender devs or fix it in our code. (one option is to ship a ttf along with the tool, so we know exactly what font is getting used) |
|
I think the settings is Region Overlap. Disabling it just fixed it for me. However, the weird bit is that Region Overlap doesn't always cause it. |
|
Correction, it doesn't always happen with Region Overlap per session. It's consistent within the session, though. |
|
I cannot reproduce this bug. Can you @carter2422? |
|
@vxlcoder perhaps it's a Mac thing only? I can still replicate it. |
|
hmmm. it seems that i can replicate on linux and osx; haven't tried win. blf.dimensions appears to return different/incorrect values (~10% difference) if n panel is open and region overlap is enabled. ex: "Contours Help (click to hide help):" is (186.046875, 11.625) if either n panel is closed or region overlap is off, but is (169.703125, 10.640625) when n panel is open and region overlap is on. the t panel (tool shelf) seems to make no difference. this appears to be a blender bug. |
|
yes. playing in console, i can replicate this problem on osx and linux. strangely, though, it reports different text sizes but only when t panel is open and n panel is closed. will report to blender devs. |
|
reported: https://developer.blender.org/T50372 will update when we hear back from blender devs. |
|
Thanks for digging in and reporting the bug @vxlcoder |
the font size changed because drawing order changed with region overlap enabled and different panels being opened. the fix: call blf.size() before calling blf.dimensions(). note: i placed the size() calls at top of calling function rather than in the txt_width and txt_height calls so size() is not called multiple times, only once.
|
turns out this is not a blender bug. the problem is that the drawing order changes when settings are changed (region overlap, open/close panels, etc.), so something was changing the font size. therefore, explicitly placing a blf.size() call before calling blf.dimensions() solved the problem. |




I'm guessing this is due to the spacing changes.
The text was updated successfully, but these errors were encountered: