mozilla/pdf.js — pull request #5163 by yurydelendik (2014-08-10 04:42:44+00:00)
Title: Refactoring of OpenType/TrueType font construction

We are using bytesToString and then using stringToArray just to concatenate multiple chunks of the Open Type file. The patch refactors code to build the file directly in the continuous Uint8Array. Also removing stringToArray since the file builder can accept the strings (not just arrays).