BUG : fix for text path rendering issues

Suggested by @leejjoon.

Fixes #2889