From 2565a37a52a5c714e7c6bbd1808db0d6d37c6ea3 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 21 Jul 2009 10:59:53 +0000 Subject: Refactor text plotter and other font functions to remove dependency on CSS. svn path=/trunk/netsurf/; revision=8641 --- image/svg.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'image') diff --git a/image/svg.c b/image/svg.c index ef4671658..b87a8a67d 100644 --- a/image/svg.c +++ b/image/svg.c @@ -98,6 +98,7 @@ bool svg_redraw(struct content *c, int x, int y, bool ok; int px, py; unsigned int i; + plot_font_style_t fstyle = *plot_style_font; assert(diagram); @@ -128,11 +129,14 @@ bool svg_redraw(struct content *c, int x, int y, py = transform[1] * diagram->shape[i].text_x + transform[3] * diagram->shape[i].text_y + transform[5]; + + fstyle.background = 0xffffff; + fstyle.foreground = 0x000000; + ok = plot.text(px, py, - &css_base_style, diagram->shape[i].text, strlen(diagram->shape[i].text), - 0xffffff, 0x000000); + &fstyle); if (!ok) return false; } -- cgit v1.2.3