[cairo-bugs] [Bug 90166] New: Add a way to specify units
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Apr 24 14:44:54 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=90166
Bug ID: 90166
Summary: Add a way to specify units
Product: cairo
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: svg backend
Assignee: emmanuel.pacaud at lapp.in2p3.fr
Reporter: ao2 at ao2.it
QA Contact: cairo-bugs at cairographics.org
Hi, what about adding a way to specify units for the SVG output?
SVG supports several units[1]: em, ex, px, pt, pc, cm, mm, in, and percentages;
but cairo hardcodes the document units to be pt.
What about a function like cairo_svg_surface_set_unit(surface, unit) ?
The units can be passed as enum values and the function would set the right
unit identifier as a string to use when writing the <svg> element in
_cairo_svg_document_finish()
If the idea looks good I can work on a patch.
Thanks,
Antonio
[1] http://www.w3.org/TR/SVG/coords.html
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20150424/006b5312/attachment.html>
More information about the cairo-bugs
mailing list