summaryrefslogtreecommitdiff
path: root/font.c
blob: fc3c04c63cadea752ccc37ceb6e4ca4b5d9421b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

#include <X11/Xproto.h>
#include <X11/Xlib.h>

#include "private.h"

WL_EXPORT int
XOpenFont(Display *xdisplay)
{
	struct csx_display *display = csx_display(xdisplay);

	csx_display_enter(display, X_OpenFont, 0);

	STUB();

	return 1;
}

WL_EXPORT int
XCloseFont(Display *xdisplay)
{
	struct csx_display *display = csx_display(xdisplay);

	csx_display_enter(display, X_CloseFont, 0);

	STUB();

	return 1;
}

WL_EXPORT XFontStruct *
XQueryFont(Display *xdisplay, XID font_id)
{
	struct csx_display *display = csx_display(xdisplay);

	csx_display_enter(display, X_QueryFont, 0);

	STUB();

	return NULL;
}

WL_EXPORT int
XQueryTextExtents(Display *xdisplay,
		  XID font_ID,
		  const char *string,
		  int nchars,
		  int *direction_return,
		  int *font_ascent_return,
		  int *font_descent_return,
		  XCharStruct *overall_return)

{
	struct csx_display *display = csx_display(xdisplay);

	csx_display_enter(display, X_QueryTextExtents, 0);

	STUB();

	return 1;
}

WL_EXPORT char **
XListFonts(Display *xdisplay,
	   const char* pattern,
	   int maxnames,
	   int *actual_count)
{
	struct csx_display *display = csx_display(xdisplay);

	csx_display_enter(display, X_ListFonts, 0);

	STUB();

	return NULL;
}

WL_EXPORT char **
XListFontsWithInfo(Display *xdisplay,
		   const char *pattern,
		   int maxnames,
		   int *count_return,
		   XFontStruct **info_return)
{
	struct csx_display *display = csx_display(xdisplay);

	csx_display_enter(display, X_ListFontsWithInfo, 0);

	STUB();

	return NULL;
}

WL_EXPORT int
XSetFontPath(Display *xdisplay, char **directories, int ndirs)
{
	struct csx_display *display = csx_display(xdisplay);

	csx_display_enter(display, X_SetFontPath, 0);

	STUB();

	return 1;
}

WL_EXPORT char **
XGetFontPath(Display *xdisplay, int *npaths)
{
	struct csx_display *display = csx_display(xdisplay);

	csx_display_enter(display, X_GetFontPath, 0);

	STUB();

	return NULL;
}