mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-10 21:12:01 +03:00
74ef206f53
Improved inline and float layout, new CSS properties, better debug output. svn path=/import/netsurf/; revision=20
29 lines
667 B
C
29 lines
667 B
C
/**
|
|
* $Id: font.h,v 1.3 2002/06/18 21:24:21 bursa Exp $
|
|
*/
|
|
|
|
/**
|
|
* structures and typedefs
|
|
*/
|
|
|
|
struct font_set;
|
|
typedef unsigned int font_id;
|
|
struct font_split {
|
|
unsigned long width;
|
|
unsigned long height;
|
|
const char * end;
|
|
};
|
|
|
|
/**
|
|
* interface
|
|
*/
|
|
|
|
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);
|
|
struct font_split font_split(struct font_set * font_set, font_id id, const char * text,
|
|
unsigned long width, int force);
|
|
unsigned long font_width(struct css_style * style, const char * text, unsigned int length);
|
|
|