if (l->num_clusters) {
memset ((void *) l->clusters, 0, l->num_clusters * sizeof (l->clusters[0]));
- bool backward = HB_DIRECTION_IS_BACKWARD (hb_buffer_get_direction (buffer));
+ hb_bool_t backward = HB_DIRECTION_IS_BACKWARD (hb_buffer_get_direction (buffer));
l->cluster_flags = backward ? CAIRO_TEXT_CLUSTER_FLAG_BACKWARD : (cairo_text_cluster_flags_t) 0;
unsigned int cluster = 0;
l->clusters[cluster].num_glyphs++;
}
-bool debug = FALSE;
+hb_bool_t debug = FALSE;
static gchar *
shapers_to_string (void)
{
if (i)
g_string_append_c (gs, '|');
+
char glyph_name[30];
if (show_glyph_names && !FT_Get_Glyph_Name (ft_face, info->codepoint, glyph_name, sizeof (glyph_name)))
g_string_append_printf (gs, "%s", glyph_name);
void fail (hb_bool_t suggest_help, const char *format, ...) G_GNUC_NORETURN;
-extern bool debug;
+extern hb_bool_t debug;
struct option_group_t
{
void add_options (option_parser_t *parser);
- bool annotate;
+ hb_bool_t annotate;
const char *fore;
const char *back;
double line_space;
hb_buffer_set_language (buffer, hb_language_from_string (language, -1));
}
- bool shape (const char *text, int text_len,
- hb_font_t *font, hb_buffer_t *buffer) {
+ hb_bool_t shape (const char *text, int text_len,
+ hb_font_t *font, hb_buffer_t *buffer) {
hb_buffer_reset (buffer);
hb_buffer_add_utf8 (buffer, text, text_len, 0, text_len);
setup_buffer (buffer);
GString *gs);
protected:
- bool show_glyph_names;
- bool show_positions;
- bool show_clusters;
+ hb_bool_t show_glyph_names;
+ hb_bool_t show_positions;
+ hb_bool_t show_clusters;
};