From 65b5ae0f8fe15d3ad659817cd72febf16cccdfe2 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 20 Feb 2005 13:19:19 +0000 Subject: [project @ 2005-02-20 13:19:19 by bursa] Font rewrite, part 3. Note that Draw export and printing are broken by these changes. svn path=/import/netsurf/; revision=1519 --- riscos/save_draw.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'riscos/save_draw.c') diff --git a/riscos/save_draw.c b/riscos/save_draw.c index 51f6a0e36..e8b4dd34a 100644 --- a/riscos/save_draw.c +++ b/riscos/save_draw.c @@ -87,7 +87,7 @@ static bool draw_plot_polygon(int *p, unsigned int n, colour fill); static bool draw_plot_fill(int x0, int y0, int x1, int y1, colour c); static bool draw_plot_clip(int clip_x0, int clip_y0, int clip_x1, int clip_y1); -static bool draw_plot_text(int x, int y, struct font_data *font, +static bool draw_plot_text(int x, int y, struct css_style *style, const char *text, size_t length, colour bc, colour colour); static bool draw_plot_disc(int x, int y, int radius, colour colour); static bool draw_plot_bitmap(int x, int y, int width, int height, @@ -858,9 +858,10 @@ bool draw_plot_clip(int clip_x0, int clip_y0, int clip_x1, int clip_y1) * \param colour the text colour * \return true on success, false on error (error got reported) */ -bool draw_plot_text(int x, int y, struct font_data *font, +bool draw_plot_text(int x, int y, struct css_style *style, const char *text, size_t length, colour bc, colour colour) { +#if 0 while (length != 0) { size_t width, rolength, consumed; const char *rofontname, *rotext; @@ -912,6 +913,7 @@ bool draw_plot_text(int x, int y, struct font_data *font, text += consumed; length -= consumed; } +#endif return true; } -- cgit v1.2.3