diff options
Diffstat (limited to 'pango/pango-hbfont-private.h')
-rw-r--r-- | pango/pango-hbfont-private.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/pango/pango-hbfont-private.h b/pango/pango-hbfont-private.h index fea6162f..e24f8889 100644 --- a/pango/pango-hbfont-private.h +++ b/pango/pango-hbfont-private.h @@ -38,19 +38,36 @@ struct _HexBoxInfo double box_height; }; +typedef struct _CommonFont CommonFont; +struct _CommonFont +{ + PangoFont parent_instance; + + int size; + float dpi; + PangoGravity gravity; + PangoMatrix matrix; +}; + struct _PangoHbFont { PangoFont parent_instance; - PangoHbFace *face; int size; /* point size, scaled by PANGO_SCALE */ float dpi; + PangoGravity gravity; + PangoMatrix matrix; + + /* up to here shared with PangoUserFont */ + + PangoHbFace *face; hb_feature_t *features; unsigned int n_features; hb_variation_t *variations; unsigned int n_variations; - PangoGravity gravity; - PangoMatrix matrix; HexBoxInfo *hex_box_info; + PangoLanguage *approximate_char_lang; + int approximate_char_width; + int approximate_digit_width; }; |