summaryrefslogtreecommitdiff
path: root/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'font.c')
-rw-r--r--font.c121
1 files changed, 121 insertions, 0 deletions
diff --git a/font.c b/font.c
new file mode 100644
index 0000000..fc3c04c
--- /dev/null
+++ b/font.c
@@ -0,0 +1,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;
+}
+