Fallback to 'kern' if no GPOS applied
authorBehdad Esfahbod <behdad@behdad.org>
Sun, 20 Dec 2009 20:23:56 +0000 (21:23 +0100)
committerBehdad Esfahbod <behdad@behdad.org>
Sun, 20 Dec 2009 20:23:56 +0000 (21:23 +0100)
src/hb-ot-shape.c

index 795fd54d67d4c9d2c8035411121195aba28bfbd7..668b223675927d5144599f37ab2d6c667ac296bf 100644 (file)
@@ -135,7 +135,7 @@ _hb_ot_substitute_complex (hb_font_t    *font,
   for (i = 0; i < num_lookups; i++)
     hb_ot_layout_substitute_lookup (face, buffer, lookups[i], 0xFFFF);
 
-  return TRUE;
+  return num_lookups != 0;
 }
 
 hb_bool_t
@@ -161,5 +161,5 @@ _hb_ot_position_complex (hb_font_t    *font,
 
   hb_ot_layout_position_finish (font, face, buffer);
 
-  return TRUE;
+  return num_lookups != 0;
 }