README.md in prawn-svg-0.32.0 vs README.md in prawn-svg-0.33.0

- old
+ new

@@ -32,10 +32,11 @@ :height | integer | Desired height of the SVG. Defaults to vertical space available. :enable_web_requests | boolean | If true, prawn-svg will make http and https requests to fetch images. Defaults to true. :enable_file_requests_with_root | string | If not nil, prawn-svg will serve `file:` URLs from your local disk if the file is located under the specified directory. It is very dangerous to specify the root path ("/") if you're not fully in control of your input SVG. Defaults to `nil` (off). :cache_images | boolean | If true, prawn-svg will cache the result of all URL requests. Defaults to false. :fallback_font_name | string | A font name which will override the default fallback font of Times-Roman. If this value is set to <tt>nil</tt>, prawn-svg will ignore a request for an unknown font and log a warning. +:color_mode | :rgb, :cmyk | Output color mode. Defaults to :rgb. ## Examples ```ruby # Render the logo contained in the file logo.svg at 100, 100 with a width of 300 @@ -59,19 +60,19 @@ - <tt>&lt;path&gt;</tt> supports all commands defined in SVG 1.1, although the implementation of elliptical arc is a bit rough at the moment. - `<text>`, `<tspan>` and `<tref>` with attributes `x`, `y`, `dx`, `dy`, `rotate`, 'textLength', 'lengthAdjust', and with extra properties - `text-anchor`, `text-decoration` (underline only), `font-size`, `font-family`, `font-weight`, `font-style`, `letter-spacing` + `text-anchor`, `text-decoration` (underline only), `font-size`, `font-family`, `font-weight`, `font-style`, `letter-spacing`, `dominant-baseline` (middle only) - <tt>&lt;svg&gt;</tt>, <tt>&lt;g&gt;</tt> and <tt>&lt;symbol&gt;</tt> - <tt>&lt;use&gt;</tt> - <tt>&lt;style&gt;</tt> (see CSS section below) - - <tt>&lt;image&gt;</tt> with <tt>http:</tt>, <tt>https:</tt>, <tt>data:image/\*;base64</tt> and `file:` schemes + - `<image>` referencing a JPEG or PNG image, with `http:`, `https:`, `data:image/jpeg;base64`, `data:image/png;base64` and `file:` schemes (`file:` is disabled by default for security reasons, see Options section above) - <tt>&lt;clipPath&gt;</tt> - `<marker>` @@ -91,11 +92,12 @@ - the <tt>preserveAspectRatio</tt> attribute on <tt>&lt;svg&gt;</tt>, <tt>&lt;image&gt;</tt> and `<marker>` elements - transform methods: `translate`, `translateX`, `translateY`, `rotate`, `scale`, `skewX`, `skewY`, `matrix` - - colors: HTML standard names, <tt>#xxx</tt>, <tt>#xxxxxx</tt>, <tt>rgb(1, 2, 3)</tt>, <tt>rgb(1%, 2%, 3%)</tt> + - colors: HTML standard names, <tt>#xxx</tt>, <tt>#xxxxxx</tt>, <tt>rgb(1, 2, 3)</tt>, <tt>rgb(1%, 2%, 3%)</tt>, + and also the non-standard `device-cmyk(1, 2, 3, 4)` for CMYK colors - measurements specified in <tt>pt</tt>, <tt>cm</tt>, <tt>dm</tt>, <tt>ft</tt>, <tt>in</tt>, <tt>m</tt>, <tt>mm</tt>, <tt>yd</tt>, <tt>pc</tt>, <tt>%</tt> - fonts: generic CSS fonts, built-in PDF fonts, and any TTF fonts in your fonts path, specified in any of the measurements above plus `em` or `rem` @@ -114,10 +116,10 @@ Pseudo-elements and the other pseudo-classes are not supported. Specificity ordering is implemented, but `!important` is not. ## Not supported -prawn-svg does not support hyperlinks, patterns or filters. +prawn-svg does not support hyperlinks, patterns, masks or filters. It does not support text in the clip area, but you can clip shapes and text by any shape. ## Configuration