Enumeration (GI Enum)

Rsvg-2.0RsvgUnit

Units for the Rsvg.Length struct. These have the same meaning as CSS length units.

If you test for the values of this enum, please note that librsvg may add other units in the future as its support for CSS improves. Please make your code handle unknown units gracefully (e.g. with a default case in a switch() statement).

Index
CH: 9

advance measure of a '0' character (depends on the text orientation)

2.58

CM: 5

centimeters

EM: 2

em, or the current font size

EX: 3

x-height of the current font

IN: 4

inches

MM: 6

millimeters

PC: 8

picas, or 1/6 inch (12 points)

PERCENT: 0

percentage values; where 1.0 means 100%.

PT: 7

points, or 1/72 inch

PX: 1

pixels