summaryrefslogtreecommitdiff
path: root/util/view-cairo.hh
diff options
context:
space:
mode:
Diffstat (limited to 'util/view-cairo.hh')
-rw-r--r--util/view-cairo.hh18
1 files changed, 6 insertions, 12 deletions
diff --git a/util/view-cairo.hh b/util/view-cairo.hh
index 00df68c..1f51f0e 100644
--- a/util/view-cairo.hh
+++ b/util/view-cairo.hh
@@ -27,7 +27,7 @@
#ifndef VIEW_CAIRO_HH
#define VIEW_CAIRO_HH
-#include "hb-private.hh"
+#include "hb.hh"
#include "options.hh"
#include "helper-cairo.hh"
@@ -39,28 +39,22 @@ struct view_cairo_t
view_options (parser),
direction (HB_DIRECTION_INVALID),
lines (0), scale_bits (0) {}
- ~view_cairo_t (void) {
+ ~view_cairo_t () {
cairo_debug_reset_static_data ();
}
void init (hb_buffer_t *buffer, const font_options_t *font_opts)
{
lines = g_array_new (false, false, sizeof (helper_cairo_line_t));
- scale_bits = -font_opts->subpixel_bits;
- }
- void new_line (void)
- {
+ scale_bits = - (int) font_opts->subpixel_bits;
}
+ void new_line () {}
void consume_text (hb_buffer_t *buffer,
const char *text,
unsigned int text_len,
- hb_bool_t utf8_clusters)
- {
- }
+ hb_bool_t utf8_clusters) {}
void error (const char *message)
- {
- g_printerr ("%s: %s\n", g_get_prgname (), message);
- }
+ { g_printerr ("%s: %s\n", g_get_prgname (), message); }
void consume_glyphs (hb_buffer_t *buffer,
const char *text,
unsigned int text_len,