[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cairo
Subject:    Re: [cairo] SVG element <use> clips negative coordinates
From:       Behdad Esfahbod <behdad () behdad ! org>
Date:       2015-02-27 2:14:37
Message-ID: 54EFD30D.1020804 () behdad ! org
[Download RAW message or body]

Or, I might be wrong, in which case Firefox and Chrome need to be fixed.

Here's the relevant parts of the spec, for spec lawyers:

  http://www.w3.org/TR/SVG/struct.html#UseElementXAttribute

b

On 15-02-26 06:10 PM, Behdad Esfahbod wrote:
> 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/
-- 
cairo mailing list
cairo@cairographics.org
http://lists.cairographics.org/mailman/listinfo/cairo
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic