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

Adrian Johnson <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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)

-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.