1. 08 Feb, 2017 2 commits
  2. 02 Feb, 2017 1 commit
  3. 11 Jan, 2017 1 commit
  4. 04 Jan, 2017 2 commits
  5. 19 Dec, 2016 1 commit
    • Federico Mena Quintero's avatar
      Add a testing mode so reftests can use predictable text rendering · 25457b72
      Federico Mena Quintero authored
      This adds an rsvg_handle_internal_set_testing() API, which should only
      be called by the test suite.  Internally, it sets cairo_font_options_t
      that should yield reproducible text rendering.
      
      For example, I get different rendering results from text objects when I
      run "make check" as a user, than when I run it as root.
      25457b72
  6. 12 Dec, 2016 1 commit
  7. 02 Dec, 2016 1 commit
  8. 01 Dec, 2016 3 commits
  9. 25 Nov, 2016 1 commit
  10. 22 Nov, 2016 2 commits
  11. 17 Nov, 2016 1 commit
  12. 16 Nov, 2016 2 commits
  13. 15 Nov, 2016 1 commit
  14. 11 Nov, 2016 4 commits
    • Federico Mena Quintero's avatar
      Ensure gradient stop offsets are in nondecreasing order. · f3fb509b
      Federico Mena Quintero authored
      The test tests/fixtures/reftests/svg1.1/pservers-grad-16-b.svg was not
      passing.
      
      This test has gradient stop offsets in the wrong order.  Cairo
      automatically sorts them, but the SVG spec mandates that they should be
      adjusted to be in nondecreasing order.
      
      I was actually confused two commits ago; I thought the spec mandated
      that the stop offsets were invalid if they weren't ordered.
      f3fb509b
    • Federico Mena Quintero's avatar
      Radial gradients: fix the focus point so it lies within the gradient's circle · ac4ca7e2
      Federico Mena Quintero authored
      An SVG radial gradient is from a focus point (fx, fy) towards a
      circle (cx, cy, r).  The focus point is assumed to be inside the circle.
      
      If the focus point is specified to be outside the circle, we need to
      find the closest point to it in the circumference, i.e. the point in the
      circumference that intersects the line that passes through (cx, cy)
      and (fx, fy).
      
      This computation makes us pass the reference test - regenerated the
      corresponding image.
      ac4ca7e2
    • Federico Mena Quintero's avatar
      RsvgGradientStop: store whether the stop's values are valid · 4006aff6
      Federico Mena Quintero authored
      The spec mandates that values for stop offsets are only plain numbers or
      percentages.  We used to handle this more or less implicitly by calling
      _rsvg_css_hand_normalize_length(), using the resulting value, and
      dropping the units.  Now we actually ensure that we get plain numbers
      or percentages, and eliminate this one use of _rsvg_css_hand_normalize_length().
      
      Now, RsvgGradientStop has an is_valid field that says whether the stop
      has valid units.  At rendering time, we can decide what to do about
      gradients with invalid stops:  currently we don't add invalid stops to
      the gradient, but we still render it up to the last valid stop -
      hopefully to make it easier to debug SVG files.
      
      Also, we now ensure that stop offsets are actually in nondecreasing
      order, per the spec.
      
      (I really want to get rid of _rsvg_css_hand_normalize_length(), but
      found these things along the way...)
      4006aff6
    • Federico Mena Quintero's avatar
      Gradients: Don't store "current color" for gradient nodes · b491f38f
      Federico Mena Quintero authored
      Gradient nodes don't need to store a has_current_color flag nor the
      current color:  nodes for gradient stops already contain this
      information, and they already resolve the current color themselves.
      b491f38f
  15. 09 Nov, 2016 6 commits
  16. 03 Nov, 2016 1 commit
  17. 31 Oct, 2016 1 commit
  18. 28 Oct, 2016 1 commit
  19. 12 Apr, 2016 1 commit
  20. 29 Jan, 2016 1 commit
  21. 06 Jan, 2016 1 commit
  22. 29 Oct, 2015 1 commit
  23. 22 Oct, 2015 4 commits