Convert ASCII to SVG
It is a fork of Ivan Ceras example that is hosted at:
Default parameters to work with ...
default =
{ fontSize = 14.0
, lineWidth = 1.0
, textWidth = 8.0
, textHeight = 16.0
, arcRadius = 4.0
, strokeColor = "black"
, textColor = "black"
, backgroundColor = "white"
, verbatim = '"'
, multilineVerbatim = False
}Get the resulting svg and pass it into a div or parse it further or do whatever ...
general settings ...
type alias Settings =
{ fontSize : Float
, lineWidth : Float
, textWidth : Float
, textHeight : Float
, arcRadius : Float
, strokeColor : String
, textColor : String
, backgroundColor : String
, verbatim : Char
, multilineVerbatim : Bool
}
Get the resulting svg and pass it into a div or whatever