-
Notifications
You must be signed in to change notification settings - Fork 57
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
stroke defined by Cairo.jl doesn't scale #60
Comments
cc @JeffBezanson, since this behavior was introduced in 863e410. |
Quite right; I made the unorthodox choice to have I made |
I totally understand the rationale, but it's probably better to make wrappers as "transparent" as possible. |
I'm fine with that. Let's think of a new name for the un-transformed stroke function. |
|
The scaling/transformation issues are discussed right now in the cairo develpment also, as there seems to be a proposal to make cairo a C++ standard(?) and some people comment, that they like also to see changes like this and that (and scaling for set_line_width shows up there). One note: The solution in Cairo.jl just uses cairo_identity_matrix, so unscaled to the device coordinate system. I have the feeling, that this is correct for drawing something on the screen, for other output media (like PDFSurface) an initial transformation might apply. |
I encountered this again while trying to construct some examples that could go into #140. |
Hello,
i guess this is called a feature, but it's not expected looking at plain cairo (e.g. porting c-code to julia).
If i run this:
i get the first two lines with a width of 2.0, but the third with the scaling applied.
The text was updated successfully, but these errors were encountered: