From 948dfeb1c2404e6bdad8c20c83a26f3eecb3764a Mon Sep 17 00:00:00 2001 From: James Bursa Date: Tue, 4 Feb 2003 09:34:32 +0000 Subject: [project @ 2003-02-04 09:34:32 by bursa] Remove obsolete files. svn path=/import/netsurf/; revision=95 --- render/font.c | 75 ----------------------------------------------------------- 1 file changed, 75 deletions(-) delete mode 100644 render/font.c (limited to 'render/font.c') diff --git a/render/font.c b/render/font.c deleted file mode 100644 index b180ed5d8..000000000 --- a/render/font.c +++ /dev/null @@ -1,75 +0,0 @@ -/** - * $Id: font.c,v 1.4 2002/06/26 12:19:24 bursa Exp $ - */ - -#include -#include -#include -#include -#include "css.h" -#include "font.h" - -/** - * internal structures - */ - -struct font_set { - /* a set of font handles */ - int stop_lcc_complaining; -}; - -/** - * functions - */ - -struct font_set * font_set_create(void) -{ - return 0; -} - -font_id font_add(struct font_set * font_set, const char * name, unsigned int weight, - unsigned int size) -{ - return 0; -} - -void font_set_free(struct font_set * font_set) -{ -} - -/** - * find where to split some text to fit it in width - */ - -struct font_split font_split(struct font_set * font_set, font_id id, const char * text, - unsigned long width, int force) -{ - size_t len = strlen(text); - unsigned int i; - struct font_split split; - - split.height = 30; - - if (len * 20 <= width) { - split.width = len * 20; - split.end = text + len; - } else { - for (i = width / 20; i != 0 && text[i] != ' '; i--) - ; - if (force && i == 0) { - i = width / 20; - if (i == 0) i = 1; - } - split.width = i * 20; - if (text[i] == ' ') i++; - split.end = text + i; - } - - return split; -} - -unsigned long font_width(struct css_style * style, const char * text, unsigned int length) -{ - return length * 7; -} - -- cgit v1.2.3