Restored old FontMgr implementation, which may work better
Restored some debugging from the newer version