Fall back to TT kerning if no GPOS
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 27 May 2009 02:11:32 +0000 (22:11 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 27 May 2009 02:11:32 +0000 (22:11 -0400)
pango/pango-ot-info.c

index fb00bb8..541062a 100644 (file)
@@ -597,8 +597,10 @@ _pango_ot_info_position    (const PangoOTInfo    *info,
                                        rule->property_bit);
        }
 
+      buffer->applied_gpos = TRUE;
     }
 
+    if (buffer->applied_gpos)
     {
       unsigned int i, j;
       hb_glyph_position_t *positions = buffer->buffer->positions;
@@ -619,6 +621,4 @@ _pango_ot_info_position    (const PangoOTInfo    *info,
          positions[j].y_pos += positions[j - positions[j].cursive_chain].y_pos;
       }
     }
-
-   buffer->applied_gpos = TRUE;
 }