Use font loader api

See #5365.

Tested in Chromium 37 (and verified that it does not break Firefox 32 or Chromium 34).
Done.