Lines 980-985
HB_Face HB_NewFace(void *font, HB_GetFontTableFunc tableFunc)
Link Here
|
980 |
HB_Stream gdefStream; |
980 |
HB_Stream gdefStream; |
981 |
|
981 |
|
982 |
gdefStream = getTableStream(font, tableFunc, TTAG_GDEF); |
982 |
gdefStream = getTableStream(font, tableFunc, TTAG_GDEF); |
|
|
983 |
error = HB_Err_Not_Covered; |
983 |
if (!gdefStream || (error = HB_Load_GDEF_Table(gdefStream, &face->gdef))) { |
984 |
if (!gdefStream || (error = HB_Load_GDEF_Table(gdefStream, &face->gdef))) { |
984 |
//DEBUG("error loading gdef table: %d", error); |
985 |
//DEBUG("error loading gdef table: %d", error); |
985 |
face->gdef = 0; |
986 |
face->gdef = 0; |
Lines 987-992
HB_Face HB_NewFace(void *font, HB_GetFontTableFunc tableFunc)
Link Here
|
987 |
|
988 |
|
988 |
//DEBUG() << "trying to load gsub table"; |
989 |
//DEBUG() << "trying to load gsub table"; |
989 |
stream = getTableStream(font, tableFunc, TTAG_GSUB); |
990 |
stream = getTableStream(font, tableFunc, TTAG_GSUB); |
|
|
991 |
error = HB_Err_Not_Covered; |
990 |
if (!stream || (error = HB_Load_GSUB_Table(stream, &face->gsub, face->gdef, gdefStream))) { |
992 |
if (!stream || (error = HB_Load_GSUB_Table(stream, &face->gsub, face->gdef, gdefStream))) { |
991 |
face->gsub = 0; |
993 |
face->gsub = 0; |
992 |
if (error != HB_Err_Not_Covered) { |
994 |
if (error != HB_Err_Not_Covered) { |
Lines 998-1003
HB_Face HB_NewFace(void *font, HB_GetFontTableFunc tableFunc)
Link Here
|
998 |
_hb_close_stream(stream); |
1000 |
_hb_close_stream(stream); |
999 |
|
1001 |
|
1000 |
stream = getTableStream(font, tableFunc, TTAG_GPOS); |
1002 |
stream = getTableStream(font, tableFunc, TTAG_GPOS); |
|
|
1003 |
error = HB_Err_Not_Covered; |
1001 |
if (!stream || (error = HB_Load_GPOS_Table(stream, &face->gpos, face->gdef, gdefStream))) { |
1004 |
if (!stream || (error = HB_Load_GPOS_Table(stream, &face->gpos, face->gdef, gdefStream))) { |
1002 |
face->gpos = 0; |
1005 |
face->gpos = 0; |
1003 |
DEBUG("error loading gpos table: %d", error); |
1006 |
DEBUG("error loading gpos table: %d", error); |
1004 |
- |
|
|