@@ -618,7 +618,7 @@ const HB_ScriptEngine HB_ScriptEngines[] = {
618
618
// Sinhala
619
619
{ HB_IndicShape, HB_IndicAttributes },
620
620
// Thai
621
- { HB_BasicShape , HB_ThaiAttributes },
621
+ { HB_ThaiShape , HB_ThaiAttributes },
622
622
// Lao
623
623
{ HB_BasicShape, 0 },
624
624
// Tibetan
@@ -1308,18 +1308,18 @@ HB_Bool HB_OpenTypePosition(HB_ShaperItem *item, int availableGlyphs, HB_Bool do
1308
1308
1309
1309
#ifdef OT_DEBUG
1310
1310
if (doLogClusters) {
1311
- DEBUG (" log clusters after shaping:" );
1312
- for (int j = 0 ; j < length; j++)
1313
- DEBUG (" log[%d] = %d" , j, item->log_clusters [j]);
1311
+ DEBUG (" log clusters after shaping:\n " );
1312
+ for (unsigned int j = 0 ; j < item-> item . length ; j++)
1313
+ DEBUG (" log[%d] = %d\n " , j, item->log_clusters [j]);
1314
1314
}
1315
- DEBUG (" final glyphs:" );
1316
- for (int i = 0 ; i < ( int )hb_buffer-> in_length ; ++i)
1317
- DEBUG (" glyph=%4x char_index=%d mark: %d cmp: %d, clusterStart: %d advance=%d/%d offset=%d/%d" ,
1318
- glyphs[i]. glyph , hb_buffer-> in_string [i].cluster , glyphs [i]. attributes .mark ,
1319
- glyphs [i].attributes . combiningClass , glyphs [i]. attributes .clusterStart ,
1320
- glyphs [i]. advance . x . toInt (), glyphs[i]. advance . y . toInt () ,
1321
- glyphs [i].offset . x . toInt (), glyphs [i].offset . y . toInt () );
1322
- DEBUG (" -----------------------------------------" );
1315
+ DEBUG (" final glyphs:\n " );
1316
+ for (unsigned int i = 0 ; i < item-> num_glyphs ; ++i)
1317
+ DEBUG (" glyph=%4x char_index=%d mark: %d cmp: %d, clusterStart: %d advance=%d offset=%d/%d\n " ,
1318
+ glyphs[i], face-> buffer -> in_string [i].cluster , attributes [i].mark ,
1319
+ attributes [i].combiningClass , attributes [i].clusterStart ,
1320
+ item-> advances [i] >> 6 ,
1321
+ item-> offsets [i].x >> 6 , item-> offsets [i].y >> 6 );
1322
+ DEBUG (" -----------------------------------------\n " );
1323
1323
#endif
1324
1324
return true ;
1325
1325
}
0 commit comments