Re: Patch to allow Cairo-based software to print to laser cutters on Windows

Carl Worth <[email protected]> Thu, 18 Oct 2018 09:10:07 -0700
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
On Wed, Oct 17 2018, Rick Yorgason wrote:
> With this patch, I can use Inkscape to set my stroke width to 0.001" and 
> it will cut through the material as expected.

If we're going to have a magic value here, I think I'd be much happier
to have 0 be the magic value.

(I know that your code isn't actually making 0.001" be magic, but a
whole range of values. I think I would really prefer to have that range
include rather then exclude 0.0.)

Does anyone see any reason why a stroke width of 0 shouldn't be treated
this way?

I think that would make a much better way to be able to document
this. ("Use a value of 0 to get a PS_COSMETIC pen which is useful when
targeting devices such as laser cutters".)

And speaking of documentation, it seems this patch should also be
touching up the documentation, such as in cairo_set_line_width?

I know the code is specific to the Windows backend, but I think it's
reasonable to put a backend-specific note into the general documentation
in a case like this.

-Carl

-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
signature.asc (application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEzvjdyAGcpm1OMJTzYAIzup5U3GEFAlvIsF8ACgkQYAIzup5U
3GG0QQ//YK2qTy0dEEKWwG0p5xgRkYX4xzFpwzA6I1E0SqyjZq1ttkNE7CMSvID6
5c/pcnBDTjWXZth0efi+sovIT326nuAN9xB0Yow0vXbbSxxgrz518P7yUHPUbv6A
vHzhd+w+/myVYXtgzkZEutUkBd+WU63i12/OBDzYheq0MI2cDG3KCms5zl2m2wVK
rLgK9cyBO5HkiYVp9W8E49smKd4oFl3rzT3p9V3rjDUJ/KyP5uFawiH4wczplLuh
WbXYYCQctFZpZs2g2TcIHE0ixGpe9wq3DJVq2FUwg2i9XsB6G5Lsr7FH5/qBKyeI
onlxspQg7DXRkrCtP6CBtRRCiYl50QVp7cXJo9DvQfXem2tJ1JzeOkzcq9uM4v2c
Bkxi7Fj+PzLiyMI6m6OZh13XwueuKyJtInSMKZhs2OKzdUxsYIAIa1otma7Q1xVx
/W9ilUseJwYbiiVGyfzw8zsBb30EePQwA3/4h6b2AJWCFeX3kT29P3rqZPV+aMQC
Yoe3+yk0ECxeze1CTvK0KH0bTz0MkFOSu34f7P7vO1zYu5xc84soAzuYMJwIM8zq
AkMVx27GyFUPpPYfnO4lfJNB4K0CZ1aVN6fqGl6ony4XmbEFAJu/LNTY8gxyz8Me
jUtw8ImqhvCza0Kz5bxD8fAwYkJJAB1m0kDZzQJYGgj2+oxsTdU=
=pPkn
-----END PGP SIGNATURE-----