LearnBoost/node-canvas — pull request #165 by c-spencer (2012-05-02 08:54:05+00:00)
Title: Add textDrawingMode context2d property for controlling whether to use paths or glyphs.

Glyph advantages:
- ~3 times faster to draw (simple test)
- selectable, copyable text in pdf mode

Glyph Disadvantages:
- strokeText acts same as fillText, except using stroke colour.
- no subpixel precision, so behaves poorly in rotation.

This pull request adds a textDrawingMode property to the context, which can take values of `glyph` or `path`, defaulting to `path`. It's preserved as part of the canvas state.