   wrap: (text, options) ->
     # override options from previous continued fragments
     @indent    = options.indent       if options.indent?
-    @charSpacing = options.characterSpacing if options.characterSpacing?
+    @characterSpacing = options.characterSpacing if options.characterSpacing?
     @wordSpacing = options.wordSpacing    if options.wordSpacing?
     @ellipsis  = options.ellipsis     if options.ellipsis?
     

class LineWrapper extends EventEmitter
  constructor: (@document, options) ->
    @indent    = options.indent or 0
    @charSpacing = options.characterSpacing or 0
    @wordSpacing = options.wordSpacing is 0
    @columns   = options.columns or 1
    @columnGap   = options.columnGap ? 18 # 1/4 inch

        @lastLine = false
        
  wordWidth: (word) ->
    return @document.widthOfString(word, this) + @characterSpacing + @wordSpacing
        
  eachWord: (text, fn) ->
    # setup a unicode line breaker
