summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-07-21 10:59:53 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-07-21 10:59:53 +0000
commit2565a37a52a5c714e7c6bbd1808db0d6d37c6ea3 (patch)
treef3fe5f224c9e0e4089aca2d9012dfe1a74cf9c90 /image
parent1930989f8ccdd574472ed72990b6a82fdcf9d5f4 (diff)
downloadnetsurf-2565a37a52a5c714e7c6bbd1808db0d6d37c6ea3.tar.gz
netsurf-2565a37a52a5c714e7c6bbd1808db0d6d37c6ea3.tar.bz2
Refactor text plotter and other font functions to remove dependency on CSS.
svn path=/trunk/netsurf/; revision=8641
Diffstat (limited to 'image')
-rw-r--r--image/svg.c8
1 files changed, 6 insertions, 2 deletions
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;
}