Fix font subclass chainup
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 12 May 2011 04:46:57 +0000 (00:46 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 12 May 2011 04:46:57 +0000 (00:46 -0400)
Test passing now.

src/hb-font.cc

index 7cdf5f6..10f686e 100644 (file)
@@ -536,11 +536,7 @@ hb_font_create_sub_font (hb_font_t *parent)
   font->x_ppem = parent->x_ppem;
   font->y_ppem = parent->y_ppem;
 
-  /* We can safely copy user_data from parent since we hold a reference
-   * onto it and it's immutable.  We should not copy the destroy notifiers
-   * though. */
-  font->klass = hb_font_funcs_reference (parent->klass);
-  font->user_data = parent->user_data;
+  font->klass = &_hb_font_funcs_nil;
 
   return font;
 }