Update text.js

Support to proportional fonts