From 974a4a21e16a2da85a66aae9b80eeca15ca26dd6 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 23 Apr 2016 23:32:21 +0100 Subject: split out the layout glyph sizing and splitting API This refactors the core "font" sizing API to be handled through gui function tables similar to every other core/frontend calling API. --- desktop/print.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'desktop/print.h') diff --git a/desktop/print.h b/desktop/print.h index 63c2935f1..5c51981d1 100644 --- a/desktop/print.h +++ b/desktop/print.h @@ -38,6 +38,7 @@ struct hlcache_handle; struct printer; +struct gui_layout_table; enum { MARGINLEFT = 0, MARGINRIGHT = 1, MARGINTOP = 2, MARGINBOTTOM = 3}; @@ -60,7 +61,7 @@ struct print_settings{ const char *output; /*the functions used to measure fonts*/ - const struct font_functions *font_func; + const struct gui_layout_table *font_func; }; @@ -73,8 +74,10 @@ bool print_draw_next_page(const struct printer *printer, bool print_cleanup(struct hlcache_handle *, const struct printer *, struct print_settings *settings); -struct print_settings *print_make_settings(print_configuration configuration, - const char *url, const struct font_functions *font_func); +/** + * Setup print settings for print render operation. + */ +struct print_settings *print_make_settings(print_configuration configuration, const char *url, const struct gui_layout_table *font_func); /*is the content currently redrawn for printing?*/ extern bool html_redraw_printing; -- cgit v1.2.3