summaryrefslogtreecommitdiff
path: root/desktop/plot_style.c
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 /desktop/plot_style.c
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 'desktop/plot_style.c')
-rw-r--r--desktop/plot_style.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/desktop/plot_style.c b/desktop/plot_style.c
index fa94076e8..54dbd40ce 100644
--- a/desktop/plot_style.c
+++ b/desktop/plot_style.c
@@ -137,3 +137,14 @@ static plot_style_t plot_style_stroke_history_static = {
};
plot_style_t *plot_style_stroke_history = &plot_style_stroke_history_static;
+/* Generic font style */
+static const plot_font_style_t plot_style_font_static = {
+ .family = PLOT_FONT_FAMILY_SANS_SERIF,
+ .size = 10,
+ .weight = 400,
+ .flags = FONTF_NONE,
+ .background = 0xffffff,
+ .foreground = 0x000000,
+};
+plot_font_style_t const * const plot_style_font = &plot_style_font_static;
+