Class Prawn::Svg::Interface
In: lib/prawn/svg/interface.rb
Parent: Object

Methods

draw   new  

Constants

DEFAULT_FONT_PATHS = ["/Library/Fonts", "/usr/share/fonts/truetype/**"]

Attributes

data  [R] 
document  [R] 
font_path  [RW] 
options  [R] 
prawn  [R] 

Public Class methods

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.

Public Instance methods

Draws the SVG to the Prawn::Document object.

[Validate]