     
     # restore flipped coordinate system
     @restore()
-
-    # keep track of text states
-    state.mode = mode
-    state.characterSpacing = characterSpacing

    # rendering mode
    mode = if options.fill and options.stroke then 2 else if options.stroke then 1 else 0
    @addContent "#{mode} Tr" unless mode is state.mode

    # Character spacing
    @addContent characterSpacing + ' Tc' unless characterSpacing is state.characterSpacing
    
    # Add the actual text
    # If we have a word spacing value, we need to encode each word separately

    text = '' + text
    return if text.length is 0

    # handle options
    align = options.align or 'left'
    wordSpacing = options.wordSpacing or 0
