-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
boundingBox returns (0,0,0,0) for Trees generated with mkText #94
Comments
Yeah, the bounding box of text depends on the font. There's not much to do here except make a note of it in the documentation. |
I guess there are quite a few subtleties with this function, such as line
width not being taken into account etc..
…On Sat, Jun 13, 2020, 3:36 PM David Himmelstrup ***@***.***> wrote:
Yeah, the bounding box of text depends on the font. There's not much to do
here except make a note of it in the documentation.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#94 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGRJXCYKU7STUFQTDUIUSTRWMT7JANCNFSM4N437IAA>
.
|
Computing correct bounding boxes for all of SVG, including masks and filter effects, would be a mighty burden. If you need accurate bounding boxes, you can always raster the SVG fragment and look at the pixels. There are nice helper functions for this. |
I've updated the docs to say that bounding boxes are best-effort. |
Thank!
…On Fri, Jul 10, 2020, 2:24 PM David Himmelstrup ***@***.***> wrote:
I've updated the docs to say that bounding boxes are best-effort.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#94 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGRJXDCSWYSFTEUGZXBKN3R22XXXANCNFSM4N437IAA>
.
|
No description provided.
The text was updated successfully, but these errors were encountered: