[cairo] [Bug 90166] Add a way to specify units (in SVG output)

Adrian Johnson ajohnson at redneon.com
Mon Oct 16 19:54:17 UTC 2017


On 17/10/17 06:15, Bill Spitzak wrote:
> I would put USER first as it appears to be the default value, making
> it zero is a good idea to avoid confusion.

The default is points.

Code:

 "<svg xmlns=\"http://www.w3.org/2000/svg\" "
 "xmlns:xlink=\"http://www.w3.org/1999/xlink\" "
 "width=\"%fpt\" height=\"%fpt\" "

Docs:

 * @width_in_points: width of the surface, in points (1 point == 1/72.0
inch)
 * @height_in_points: height of the surface, in points (1 point ==
1/72.0 inch)



More information about the cairo mailing list