/[james]/archive/guilib/ufont.h
ViewVC logotype

Contents of /archive/guilib/ufont.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16 - (show annotations) (download) (as text)
Mon Feb 10 22:56:40 2003 UTC (21 years, 10 months ago) by james
File MIME type: text/x-chdr
File size: 1483 byte(s)
Initial import.

1 /* ufont.h */
2
3 #ifndef ufont_H
4 #define ufont_H
5
6 #include <stddef.h>
7 #include <stdio.h>
8 #include <stdlib.h>
9 #include <string.h>
10
11 #include "oslib/font.h"
12 #include "oslib/os.h"
13
14 struct ufont_font;
15
16 typedef struct ufont_font *ufont_f;
17
18 extern os_error *
19 xufont_find_font(char const *font_name,
20 int xsize,
21 int ysize,
22 int xres,
23 int yres,
24 ufont_f *font,
25 int *xres_out,
26 int *yres_out);
27
28 extern os_error *
29 xufont_lose_font(ufont_f font);
30
31 extern os_error *
32 xufont_paint(ufont_f font,
33 wchar_t const *string,
34 font_string_flags flags,
35 int xpos,
36 int ypos,
37 font_paint_block const *block,
38 os_trfm const *trfm,
39 unsigned int length);
40
41 extern os_error *
42 xufont_convert(ufont_f font,
43 wchar_t const *string,
44 unsigned int length,
45 char **presult,
46 unsigned int **ptable);
47
48 extern os_error *
49 xufont_scan_string(ufont_f font,
50 wchar_t const *string,
51 font_string_flags flags,
52 int x,
53 int y,
54 font_scan_block const *block,
55 os_trfm const *trfm,
56 unsigned int length,
57 int *split_length,
58 int *x_out,
59 int *y_out,
60 int *length_out);
61
62 #endif

  ViewVC Help
Powered by ViewVC 1.1.26