2 * pango-ot-private.h: Implementation details for Pango OpenType code
4 * Copyright (C) 2000 Red Hat Software
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
22 #ifndef __PANGO_OT_PRIVATE_H__
23 #define __PANGO_OT_PRIVATE_H__
25 #include <glib-object.h>
27 #include <pango/pango-ot.h>
28 #include "opentype/hb-ot.h"
29 #include "opentype/hb-glib.h"
33 typedef struct _PangoOTInfoClass PangoOTInfoClass;
37 GObject parent_instance;
46 struct _PangoOTInfoClass
48 GObjectClass parent_class;
52 typedef struct _PangoOTRule PangoOTRule;
61 typedef struct _PangoOTRulesetClass PangoOTRulesetClass;
63 struct _PangoOTRuleset
65 GObject parent_instance;
70 /* the index into these arrays is a PangoOTTableType */
72 guint script_index[2];
73 guint language_index[2];
76 struct _PangoOTRulesetClass
78 GObjectClass parent_class;
84 gboolean should_free_hb_buffer;
87 guint zero_width_marks : 1;
88 guint applied_gpos : 1;
91 hb_face_t *_pango_ot_info_get_hb_face (PangoOTInfo *info);
92 void _pango_ot_info_substitute (const PangoOTInfo *info,
93 const PangoOTRuleset *ruleset,
94 PangoOTBuffer *buffer);
95 void _pango_ot_info_position (const PangoOTInfo *info,
96 const PangoOTRuleset *ruleset,
97 PangoOTBuffer *buffer);
101 #endif /* __PANGO_OT_PRIVATE_H__ */