function TTFFont(rawData, name, encoding) {
      var data;

      this.rawData = rawData;
      data = this.contents = new Data(rawData);
      this.contents.pos = 4;

      if (data.readString(4) === 'ttcf') {
        if (!name) {
          throw new Error("Must specify a font name for TTC files.");
        }
        throw new Error("Font " + name + " not found in TTC file.");
      } else {
        data.pos = 0;
        this.parse();
        this.subset = new Subset(this);
        this.registerTTF();
      }
    }
function TTFFont(rawData, name, encoding) {
      var data;

      this.rawData = rawData;
      data = this.contents = new Data(rawData);
      this.contents.pos = 4;

      if (data.readString(4) === 'ttcf') {
        if (!name) {
          throw new Error("Must specify a font name for TTC files.");
        }
        throw new Error("Font " + name + " not found in TTC file.");
      } else {
        data.pos = 0;
        this.parse();
        this.subset = new Subset(this);
        this.registerTTF();
      }
    }
function TTFFont ( rawData , name , encoding ) { var data ; this . rawData = rawData ; data = this . contents = new Data ( rawData ) ; this . contents . pos = 4 ; if ( data . readString ( 4 ) === 'ttcf' ) { if ( ! name ) { throw new Error ( "Must specify a font name for TTC files." ) ; } throw new Error ( "Font " + name + " not found in TTC file." ) ; } else { data . pos = 0 ; this . parse ( ) ; this . subset = new Subset ( this ) ; this . registerTTF ( ) ; } }
/* Subset object is created, and registerTTF function is called. ************************************************************
/ * Subset object is created and registerTTF function is called . ************************************************************