Class | Prawn::Svg::Interface |
In: |
lib/prawn/svg/interface.rb
|
Parent: | Object |
DEFAULT_FONT_PATHS | = | ["/Library/Fonts", "/usr/share/fonts/truetype/**"] |
data | [R] | |
document | [R] | |
font_path | [RW] | |
options | [R] | |
prawn | [R] |
Creates a Prawn::Svg object.
data is the SVG data to convert. prawn is your Prawn::Document object.
options must contain the key :at, which takes a tuple of x and y co-ordinates.
options can optionally contain the key :width or :height. If both are specified, only :width will be used.