Value | Meaning |
---|---|
User0 | User unit, a value in the current coordinate system. If used in the root element for the initial coordinate systems it corresponds to pixels. (Since 1.16) |
Em1 | The size of the element's font. (Since 1.16) |
Ex2 | The x-height of the element’s font. (Since 1.16) |
Px3 | Pixels (1px = 1/96th of 1in). (Since 1.16) |
In4 | Inches (1in = 2.54cm = 96px). (Since 1.16) |
Cm5 | Centimeters (1cm = 96px/2.54). (Since 1.16) |
Mm6 | Millimeters (1mm = 1/10th of 1cm). (Since 1.16) |
Pt7 | Points (1pt = 1/72th of 1in). (Since 1.16) |
Pc8 | Picas (1pc = 1/6th of 1in). (Since 1.16) |
Percent9 | Percent, a value that is some fraction of another reference value. (Since 1.16) |
#cairo_svg_unit_t is used to describe the units valid for coordinates and lengths in the SVG specification.
See also: