Skip to content

Releases: mogest/prawn-svg

v0.28.0

25 Jul 22:18
Compare
Choose a tag to compare

New features:

  • The majority of common CSS selectors are now supported. Previously only singular ID, class or tag selectors worked.
  • Text stroking, fill-stroking and invisibility
  • fill-rule support

Bug fixes:

  • Prefer fonts loaded in prawn's font_families over the ones in the registry path

v0.27.1

08 Apr 09:32
Compare
Choose a tag to compare

Small bugfix release to fix sizing regression introduced in the last release.

v0.27.0

31 Mar 23:56
Compare
Choose a tag to compare

New features:

  • Gradients are supported, as long as you're using Prawn 2.2.0+

Fixes:

  • element's width and height now default to 100% as per spec and modern browser implementation
  • Better error handling for invalid paths
  • Don't 'fill' when drawing a single-dimensional line; this renders wrongly in Adobe Acrobat
  • Allow generic font names to be mapped

Constraints:

  • Minimum ruby version has been bumped up to 2.1.0.

v0.26.0

21 Dec 21:00
Compare
Choose a tag to compare

New features:

  • Allow em units to be used anywhere

Fixes:

  • Better parsing of scientific notation
  • style elements are now parsed before the rest of the document
  • use element reimplemented to be compliant with svg spec
  • Ignore non-SVG elements instead of warning about their presence
  • Fix double-parsing of styles on a text element

v0.25.1

21 May 02:12
Compare
Choose a tag to compare

Fix marker and use elements by duplicating the arguments when they're included in other parts of the document.

v0.25.0

29 Apr 23:22
Compare
Choose a tag to compare

In this release:

  • Secondary <svg> elements now act correctly in that they form a new viewport
  • A complete re-implementation of the text system:
    • whitespace is now correctly collapsed
    • spaces in between tags are now correctly placed
    • x, y, dx and dy attributes now work as they're meant to
    • rotate attribute implemented
    • <tref> element implemented

Bugs fixed:

  • Handle curves with degenerate control points when drawing markers
  • Top-level viewPort X offset with 'meet' aspect ratio is now correctly calculated

v0.24.0

24 Apr 01:08
Compare
Choose a tag to compare
  • <marker> implemented
  • Property/attribute parser completely rewritten to provide a more compliant parsing of properties and property inheritance
  • Font sizes can now be specified in %, em and rem
  • <switch> and <foreignObject> now correctly handled

v0.23.1

02 Apr 21:34
Compare
Choose a tag to compare

Minor fixes:

  • Remove "circular reference" warning
  • Make file: schema links load on Windows

v0.23.0

24 Mar 22:02
Compare
Choose a tag to compare

In this release:

  • Better documentation
  • Support for file: image links via the enable_file_requests_with_root option
  • New enable_web_requests option, default on, so you can disable web requests for potentially malicious source SVG documents
  • Much faster render times when svg is involved multiple times or when <text> is not used in the document, due to a more intelligent way of scanning the font directories
  • Proper support for currentColor
  • Multiple refactors to make the code more easily maintained and extended

the "change the world" release

08 Oct 11:21
Compare
Choose a tag to compare

This release sees a complete refactoring of the internals of prawn-svg, and the eventual support of gradients once the prawn project accepts a pending pull request; this is estimated to be for the 2.0.4 release.