From 600f3ad557dd0ac4e1fea316fe36251363988401 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sat, 11 May 2002 15:22:24 +0000 Subject: [project @ 2002-05-11 15:22:24 by bursa] Better inline layout algorithm, simple tcl/tk gui. svn path=/import/netsurf/; revision=15 --- render/font.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'render/font.h') diff --git a/render/font.h b/render/font.h index db10b20b2..4d789a208 100644 --- a/render/font.h +++ b/render/font.h @@ -1,5 +1,5 @@ /** - * $Id: font.h,v 1.1 2002/04/25 15:52:26 bursa Exp $ + * $Id: font.h,v 1.2 2002/05/11 15:22:24 bursa Exp $ */ /** @@ -8,6 +8,11 @@ struct font_set; typedef unsigned int font_id; +struct font_split { + unsigned long width; + unsigned long height; + const char * end; +}; /** * interface @@ -17,6 +22,6 @@ struct font_set * font_set_create(void); font_id font_add(struct font_set * font_set, const char * name, unsigned int weight, unsigned int size); void font_set_free(struct font_set * font_set); -unsigned long font_split(struct font_set * font_set, font_id id, const char * text, - unsigned long width, const char ** end); +struct font_split font_split(struct font_set * font_set, font_id id, const char * text, + unsigned long width, int force); -- cgit v1.2.3