-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
linewidth doesn't change bounding box #28
Comments
I don't think it should change the bounding box.
|
I hope you agree that the flat points looks bad and the user doesn't really want it. If That said, I don't understand why you think that it shouldn't change. In particular, the bounding box IS changed (OR Consider this program:
You can clearly see that L is drawing outside of its bounding box. Can you debug me? Is there something that you know about for the long history of |
that's not what the bounding box means for picts. What it really means is "things line up here". I think that a change like this would break pretty much every talk I've written that uses I think that if you want to change the bounding box and you want to change the line widths, then call Also, I think that you'd probably end up reimplementing a large part of the drawing toolkit to get this functionality (the part that computes where curves are drawn). |
I agree that it is very not backwards compatible and that is bad. I agree that In particular, I don't like that Now regarding your last comment about reimplementation, do you mean to discover the real bounding box? |
On Sat, Dec 31, 2016 at 8:53 AM, Jay McCarthy ***@***.***> wrote:
Now regarding your last comment about reimplementation, do you mean to
discover the real bounding box?
Yes.
I think it would make sense to add a function, perhaps called
`fit-to-drawing` or something that computed a new bounding box based on
what is actually drawn in the pict. I think you'd need to involve the
backend drawing library since you don't want to reimplement font drawing,
for example (and different backends draw different curves in slightly
different ways too, iirc).
|
I tried to fix this but got really lost. I initially thought the problem would be in
outline-flash
, so I racket-ified it. I'll push that change, but feel free to revert it if it is too racy.The text was updated successfully, but these errors were encountered: