diff options
author | Phil Mellor <phil@monkeyson.info> | 2002-09-11 14:24:02 +0000 |
---|---|---|
committer | Phil Mellor <phil@monkeyson.info> | 2002-09-11 14:24:02 +0000 |
commit | 811106028fd050cdee11fbc8732ba39f2de5e12a (patch) | |
tree | 0194609193dc142881958ff81bef57f07da71b54 /riscos/font.h | |
parent | a46eef0002d061c3363756182a592be7646ae79b (diff) | |
download | netsurf-811106028fd050cdee11fbc8732ba39f2de5e12a.tar.gz netsurf-811106028fd050cdee11fbc8732ba39f2de5e12a.tar.bz2 |
[project @ 2002-09-11 14:24:02 by monkeyson]
RISC OS Wimp GUI.
svn path=/import/netsurf/; revision=33
Diffstat (limited to 'riscos/font.h')
-rw-r--r-- | riscos/font.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/riscos/font.h b/riscos/font.h new file mode 100644 index 000000000..ee3e4c2b2 --- /dev/null +++ b/riscos/font.h @@ -0,0 +1,39 @@ +/** + * $Id: font.h,v 1.1 2002/09/11 14:24:02 monkeyson Exp $ + */ + +#ifndef _NETSURF_RISCOS_FONT_H_ +#define _NETSURF_RISCOS_FONT_H_ + +/** + * structures and typedefs + */ + +#include "netsurf/render/css.h" +#include "oslib/font.h" + +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); + +font_f riscos_font_css_to_handle(struct css_style* style); + +void font_position_in_string(const char* text, struct css_style* style, int length, int x, int* char_offset, int* pixel_offset); + +#endif |