summaryrefslogtreecommitdiff
path: root/css/css.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-01-28 21:48:10 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-01-28 21:48:10 +0000
commit1ee029cee6ff5455a5e3c894035319dd67da22de (patch)
tree1c9f292cb1e9f93d77f4c8702a94856bf991f073 /css/css.h
parentec933cf4857e9f78879cf6c02a86a3f5b463252d (diff)
downloadnetsurf-1ee029cee6ff5455a5e3c894035319dd67da22de.tar.gz
netsurf-1ee029cee6ff5455a5e3c894035319dd67da22de.tar.bz2
[project @ 2004-01-28 21:48:10 by jmb]
Add font-family support. Still needs a little work, but works fine as is. Add CSS rules for text formatting HTML tags (<DFN> <CITE> <CODE> etc.) Update TODO lists. svn path=/import/netsurf/; revision=514
Diffstat (limited to 'css/css.h')
-rw-r--r--css/css.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/css/css.h b/css/css.h
index 640c0c041..3271ab4bd 100644
--- a/css/css.h
+++ b/css/css.h
@@ -52,6 +52,16 @@ typedef enum {
CSS_TEXT_DECORATION_UNKNOWN = 0x1000
} css_text_decoration;
+typedef enum {
+ CSS_FONT_FAMILY_INHERIT = 0x1,
+ CSS_FONT_FAMILY_SANS_SERIF = 0x2,
+ CSS_FONT_FAMILY_SERIF = 0x4,
+ CSS_FONT_FAMILY_MONOSPACE = 0x8,
+ CSS_FONT_FAMILY_CURSIVE = 0x10,
+ CSS_FONT_FAMILY_FANTASY = 0x20,
+ CSS_FONT_FAMILY_UNKNOWN = 0x1000
+} css_font_family;
+
/** Representation of a complete CSS 2 style. */
struct css_style {
colour background_color;
@@ -72,6 +82,7 @@ struct css_style {
} value;
} font_size;
+ css_font_family font_family;
css_font_weight font_weight;
css_font_style font_style;