[NaCL] refactor ttf rendering

The only semantic changes here are a couple of additional
assertions in the font rendering to ensure that data is
not written out of bounds.

Review URL: https://codereview.chromium.org/12379020