From 1ee029cee6ff5455a5e3c894035319dd67da22de Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 28 Jan 2004 21:48:10 +0000 Subject: [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 ( etc.) Update TODO lists. svn path=/import/netsurf/; revision=514 --- css/css.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'css/css.h') 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; -- cgit v1.2.3