summaryrefslogtreecommitdiff
path: root/dviware/kyocera/kyo.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /dviware/kyocera/kyo.h
Initial commit
Diffstat (limited to 'dviware/kyocera/kyo.h')
-rw-r--r--dviware/kyocera/kyo.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/dviware/kyocera/kyo.h b/dviware/kyocera/kyo.h
new file mode 100644
index 0000000000..ceb5b14a04
--- /dev/null
+++ b/dviware/kyocera/kyo.h
@@ -0,0 +1,44 @@
+#include "param.h"
+#include <sys/types.h>
+#include <sys/dir.h>
+
+#ifndef KYOMAXWORDS
+#define KYOMAXWORDS 387000 /* Calculated from Kyocera status page */
+#endif
+#define MAXKYOHEIGHT 150 /* Max height of a font in pixels */
+
+#define KC_LOADED 0x0001 /* Char has been loaded in the printer */
+#define KC_NEEDED 0x0002 /* This char is needed on this page */
+#define KC_RASTER 0x0004 /* Char must be sent as raster info */
+
+struct kyochar {
+ short kc_info,kc_kyowidth;
+ short kc_height,kc_width;
+ short kc_xoffset,kc_yoffset;
+ long kc_texwidth,kc_pxlwidth;
+ union {long l; unsigned short *p} kc_glyph;
+};
+
+#define KF_LOADED 0x0001 /* Font has been loaded into printer */
+#define KF_FILE 0x0002 /* Font hasn't been loaded from the file */
+
+#define KF_MIN 2500 /* #words overhead for a font */
+#define KF_NUMBASE 1000 /* base for fontnumbers */
+#define KF_USED 1
+
+struct kyofont {
+ short kf_info;
+ short kf_kyonumber;
+ short kf_maxheight;
+ long kf_mag;
+ long kf_words_used;
+ long kf_words_needed;
+ long kf_timestamp;
+ long kf_tfm_checksum;
+ long kf_pxl_mag_val;
+ long kf_pxl_design_size;
+ long kf_s;
+ char kf_name[MAXFNTNAMLEN];
+ char kf_filename[MAXNAMLEN];
+ struct kyochar kf_char[MAXCHARS];
+} *kyofonts[MAXKYOFONTS];