I am implementing SVG Tiny 1.1 and I am having trouble understanding the "user unit" concept.
SVG 1.1 specification defines every <length> with no specified unit (such as "mm", "cm", "pt", etc) to be in "user unit".
While implementing interface "SVGLength", I encountered 4 attributes related to the value of the length; value
, unityType
, valueInSpecifiedUnit
, valueAsString
. The last 3 attributes are clear enough for me.
valueInSpecifiedUnit
is in unit typeunitType
.valueAsString
equalsvalueInSpecifiedUnit
+unitType
's string value. Eg: "10mm"
However, the attribute value is said to be in user unit. So my questions are:
- What is "user unit"?
- how to convert from "user unit" to an "absolute unit" such as millimeter (mm) ?
Regards,