From 52df150efeff4cf003cee65f8c91618f1a980bc8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 12 May 2011 00:46:57 -0400 Subject: [PATCH] Fix font subclass chainup Test passing now. --- src/hb-font.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/hb-font.cc b/src/hb-font.cc index 7cdf5f69f..10f686eb5 100644 --- a/src/hb-font.cc +++ b/src/hb-font.cc @@ -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; }