summaryrefslogtreecommitdiff
path: root/riscos/font.h
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2002-10-08 11:15:29 +0000
committerJames Bursa <james@netsurf-browser.org>2002-10-08 11:15:29 +0000
commit390fb8fb8dd559e2efbdaf7a19be9d2faa4042e2 (patch)
tree7bdd081111817e0c7b0f12300de6e79b2b519ae4 /riscos/font.h
parent53c0e810e5c34cb89c73c6b79b31dfa53b14f90f (diff)
downloadnetsurf-390fb8fb8dd559e2efbdaf7a19be9d2faa4042e2.tar.gz
netsurf-390fb8fb8dd559e2efbdaf7a19be9d2faa4042e2.tar.bz2
[project @ 2002-10-08 11:15:29 by bursa]
Removed most Unicode support, because it slows things down too much. svn path=/import/netsurf/; revision=42
Diffstat (limited to 'riscos/font.h')
-rw-r--r--riscos/font.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/riscos/font.h b/riscos/font.h
index 24b5d0f5d..21e44bc24 100644
--- a/riscos/font.h
+++ b/riscos/font.h
@@ -1,5 +1,5 @@
/**
- * $Id: font.h,v 1.2 2002/09/26 21:38:33 bursa Exp $
+ * $Id: font.h,v 1.3 2002/10/08 11:15:29 bursa Exp $
*/
#ifndef _NETSURF_RISCOS_FONT_H_
@@ -15,13 +15,16 @@
typedef unsigned int font_id;
#define FONT_FAMILIES 1
-#define FONT_CHUNKS 3
#define FONT_BOLD 2
#define FONT_SLANTED 1
-struct font_set;
+/* a font_set is just a linked list of font_data for each face for now */
+struct font_set {
+ struct font_data *font[FONT_FAMILIES * 4];
+};
+
struct font_data {
- font_f handle[FONT_CHUNKS];
+ font_f handle;
unsigned int size;
struct font_data *next;
};
@@ -34,9 +37,8 @@ unsigned long font_width(struct font_data *font, const char * text, unsigned int
void font_position_in_string(const char* text, struct font_data *font,
int length, int x, int* char_offset, int* pixel_offset);
-struct font_set *font_new_set();
+struct font_set *font_new_set(void);
struct font_data *font_open(struct font_set *set, struct css_style *style);
void font_free_set(struct font_set *set);
-char *font_utf8_to_string(struct font_data *data, const char *s, unsigned int length);
#endif