diff options
author | John Tytgat <joty@netsurf-browser.org> | 2004-07-05 20:19:52 +0000 |
---|---|---|
committer | John Tytgat <joty@netsurf-browser.org> | 2004-07-05 20:19:52 +0000 |
commit | a0d511734ae464d6e7b4d2f5e019611c0cdafea9 (patch) | |
tree | 3427f02b2f829492f6bf89d16c7af91726878e9c /riscos/ufont.h | |
parent | ab11d2c94d0ed5c4ed9ab4f32417e3c1c4cf8fb9 (diff) | |
download | netsurf-a0d511734ae464d6e7b4d2f5e019611c0cdafea9.tar.gz netsurf-a0d511734ae464d6e7b4d2f5e019611c0cdafea9.tar.bz2 |
[project @ 2004-07-05 20:19:51 by joty]
Using UTF-8 instead of Latin1 encoding.
svn path=/import/netsurf/; revision=1049
Diffstat (limited to 'riscos/ufont.h')
-rw-r--r-- | riscos/ufont.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/riscos/ufont.h b/riscos/ufont.h new file mode 100644 index 000000000..620c3db89 --- /dev/null +++ b/riscos/ufont.h @@ -0,0 +1,70 @@ +/* ufont.h + * Licensed under the GNU General Public License, + * http://www.opensource.org/licenses/gpl-license + * Copyright 2000 James Bursa <bursa@users.sourceforge.net> + * Copyright 2004 John Tytgat <John.Tytgat@aaug.net> + */ + +#ifndef UFONT_HEADER_INCLUDED +#define UFONT_HEADER_INCLUDED + +#include <stddef.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +#include "oslib/font.h" +#include "oslib/os.h" + +typedef struct ufont_font *ufont_f; + +extern os_error *xufont_find_font(char const *font_name, + int xsize, + int ysize, + int xres, + int yres, + ufont_f *font, + int *xresOutP, + int *yresOutP); + +extern os_error *xufont_lose_font(ufont_f font); + +extern os_error *xufont_paint(ufont_f font, + unsigned char const *string, + font_string_flags flags, + int xpos, + int ypos, + font_paint_block const *block, + os_trfm const *trfm, + int length); + +extern os_error *xufont_scan_string(ufont_f font, + unsigned char const *string, + font_string_flags flags, + int x, + int y, + font_scan_block const *block, + os_trfm const *trfm, + int length, + unsigned char const **split_point, + int *x_out, + int *y_out, + int *length_out); + +extern os_error *xufont_txtenum(ufont_f font, + unsigned char const *string, + font_string_flags flags, + size_t length, + int *width, + unsigned char const **rofontname, + unsigned char const **rotext, + size_t *rolength, + size_t *consumed); + +extern os_error *xufont_convert(ufont_f font, + unsigned char const *string, + size_t length, + char **presult, + size_t **ptable); + +#endif |