Ported over subtitle font-detection code from transcoder

Compiled, tested, huzzah.