Skip to content

(#1046): Add RSVG_UNIT_CH to the RsvgUnit enum

Sneakily, we'll bump the library API version but mark it as backwards-compatible:

  • This enum is never produced by the caller; it's just a return value from rsvg_handle_get_intrinsic_dimensions().

  • Adding the extra case for "ch" at the end of the enum does not change the previous values.

  • Anyway, RsvgUnit is just part of RsvgLength, which is only ever returned when querying the intrinsic size of an SVG document, and it would be very strange to have something like <svg width="5ch" height="3ch">, so this is not a common case at all.

Fixes #1046 (closed)

Edited by Federico Mena Quintero

Merge request reports