Commit 6f1eca046074c024a8c9235caa887b9cbadde5c1

Wu, Chia-I (吳佳一) 2005-11-20T08:24:24

* src/sfnt/ttload.c (sfnt_dir_check): Clean up and return correct error code. (sfnt_init): New function to fill in face->ttc_header. A non-TTC font is synthesized into a TTC font with one offset table. (tt_face_load_sfnt_header): Use sfnt_init. Fix an invalid access when the font is TTC and face_index is -1.