[cairo] SVG element <use> clips negative coordinates
Behdad Esfahbod
behdad at behdad.org
Thu Feb 26 18:10:41 PST 2015
Howdy!
Currently cairo-svg uses the <use> element to render glyphs. Such glyphs have
their origin at baseline-left, which is typical in text rendering. This works
fine with librsvg.
However, as observed in Firefox and Chrome, and hidden in the spec, the <use>
element clips its content to a rectangle. When width and height are left
unset, they expand to 100%, the result being that in a line like this:
<use xlink:href="#glyph4-11" x="50" y="50"/>
only the first quadrant is rendered.
Test image attached.
Federico: librsvg needs to be fixed to do the (stupid) clipping...
Cheers,
--
behdad
http://behdad.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: text.svg
Type: image/svg+xml
Size: 399 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20150226/7f53dea0/attachment.svg>
More information about the cairo
mailing list