summaryrefslogtreecommitdiff
path: root/zwgc/X_fonts.h
diff options
context:
space:
mode:
authorGravatar Marc Horowitz <marc@mit.edu>1989-11-01 20:02:01 +0000
committerGravatar Marc Horowitz <marc@mit.edu>1989-11-01 20:02:01 +0000
commitd13d8a046838ce3d0e2643bb5b49f2ff77d679ca (patch)
tree05737bc11e3461836ce817939b9129ed58545ac7 /zwgc/X_fonts.h
parentfd994e4099ad66fb3bf26cd636ca5d5cae72da68 (diff)
Initial revision
Diffstat (limited to 'zwgc/X_fonts.h')
-rw-r--r--zwgc/X_fonts.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/zwgc/X_fonts.h b/zwgc/X_fonts.h
new file mode 100644
index 0000000..8cd64dc
--- /dev/null
+++ b/zwgc/X_fonts.h
@@ -0,0 +1,31 @@
+#ifndef x_fonts_MODULE
+#define x_fonts_MODULE
+
+#include "X_driver.h"
+
+#define SPECIAL_FACE -1
+#define ROMAN_FACE 0
+#define BOLD_FACE 1
+#define ITALIC_FACE 2
+#define BOLD_ITALIC_FACE 3
+
+#define SPECIAL_SIZE -1
+#define SMALL_SIZE 0
+#define MEDIUM_SIZE 1
+#define LARGE_SIZE 2
+
+/*
+ * XFontStruct *get_font(string family; int size, face)
+ * Requires: size is one of SMALL_SIZE, MEDIUM_SIZE, LARGE_SIZE and
+ * face is one of ROMAN_FACE, BOLD_FACE, ITALIC_FACE,
+ * BOLDITALIC_FACE.
+ * Effects: Looks up the font specified by the above in the
+ * X resources. If that font is not specified by in
+ * the X resources or it can't be loaded, the font
+ * specified by default.medium.roman is used. <<<>>>
+ */
+
+extern XFontStruct *get_font();
+extern XFontStruct *get_fontst_from_fid();
+
+#endif