Centralize FreeType UPEM calculation.

When calculating the units per em with FreeType, FreeType tends to leave
the value on the FT_Face object at zero if the font is a bitmap only
font, even if the font does have an em size and linear metrics
available. Centralize the UPEM calculation so that all users agree on
the value.

Change-Id: I906abc2aa42400dc11b73feea8c528e8b5cd8f92
Reviewed-on: https://skia-review.googlesource.com/150919
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Herb Derby <herb@google.com>
2 files changed