Closed esperanc closed 9 months ago
Noticed the same, I guess I should be writing bugs here as opposed to discussions. My bad https://github.com/cables-gl/cables_docs/discussions/593
always happy to go through this with you as and when
The fix I proposed to the line height issue is to use fontBoundingBoxAscent and fontBoundingBoxDescent rather than actualXXX. Also, I found that computing this on all lines is overkill, i.e., a single line is enough, or even better, a fixed string. Take a look at the modified op in the included demo.
i did not use that, because firefox did not support it, looks like it does since august 23: https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/fontBoundingBoxAscent
will look into your fix next week! thanks!!
this went to cables.gl with the latest release
Describe the bug I detected two inconsistencies in the way TextTexture behaves.
I prepared a demo for the problem, together with a fixed custom TextTexture op in https://cables.gl/edit/vr_wmP
Here's a screenshot:
How To Reproduce
Platform