Fix text measurement logic, and inherit label attributes properly.
Merge pull request #3 from square/pwesten/REGISTER-7711+7716_ttt_fixes

firestone and kve both say LGTM. Merging.