Releases: mogest/prawn-svg
Releases · mogest/prawn-svg
v0.29.0
Changes:
- SVGs that do not have a width or height but do have a viewBox will now use 100% width and use the viewBox's ratio to determine the height. Previously it would use 100% of both width and height.
Bug fixes:
- Correctly ignore CSS selectors that prawn-svg doesn't implement; some would make it crash.
v0.28.0
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
v0.27.0
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
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
v0.25.0
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
anddy
attributes now work as they're meant torotate
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
v0.23.1
v0.23.0
In this release:
- Better documentation
- Support for
file:
image links via theenable_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