From 74ef206f532445a03a9463d4c0a5e0715e9808b4 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Tue, 18 Jun 2002 21:24:21 +0000 Subject: [project @ 2002-06-18 21:24:21 by bursa] Improved inline and float layout, new CSS properties, better debug output. svn path=/import/netsurf/; revision=20 --- render/font.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'render/font.c') diff --git a/render/font.c b/render/font.c index 6ac3a656a..01f3cde09 100644 --- a/render/font.c +++ b/render/font.c @@ -1,11 +1,12 @@ /** - * $Id: font.c,v 1.2 2002/05/11 15:22:24 bursa Exp $ + * $Id: font.c,v 1.3 2002/06/18 21:24:21 bursa Exp $ */ #include #include #include #include +#include "css.h" #include "font.h" /** @@ -66,4 +67,8 @@ struct font_split font_split(struct font_set * font_set, font_id id, const char return split; } +unsigned long font_width(struct css_style * style, const char * text, unsigned int length) +{ + return length * 7; +} -- cgit v1.2.3