[cairo] [Bug 90166] Add a way to specify units (in SVG output)
ao2 at ao2.it
Fri Nov 3 14:13:05 UTC 2017
On Thu, 12 Oct 2017 12:25:41 +0200
Antonio Ospite <ao2 at ao2.it> wrote:
> The API addition I originally proposed[1,2] looks like this:
> void cairo_svg_surface_set_document_unit (cairo_surface_t*, cairo_svg_unit_t)
> Where cairo_svg_unit_t is an enum type representing all the possible
here is v2 of the path:
After this is merged we can discuss if some extensions can be useful;
like getting an array of all the possible units, or having a function
to convert the enum values to strings, I mean following the model of
cairo_svg_get_versions() and cairo_svg_version_to_string().
I was also thinking of tweaking the documentation of the functions which
create SVG surfaces to state that "width" and "height" are assumed to
be in points by *default*, but that their unit can be changed later.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
More information about the cairo