summaryrefslogtreecommitdiff
path: root/dviware/dvi2qms/fonts.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/dvi2qms/fonts.h
Initial commit
Diffstat (limited to 'dviware/dvi2qms/fonts.h')
-rw-r--r--dviware/dvi2qms/fonts.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/dviware/dvi2qms/fonts.h b/dviware/dvi2qms/fonts.h
new file mode 100644
index 0000000000..fc2ce035fa
--- /dev/null
+++ b/dviware/dvi2qms/fonts.h
@@ -0,0 +1,70 @@
+/* fonts.h
+ * This file contains the interface to fonts.c, a way for using at tex fonts
+ * on a printer in a modular way.
+ */
+
+/* Options to f_init
+ */
+#define F_INIT_LANDSCAPE 0x00000001
+#define F_INIT_QMS800 0x00000002
+
+/* Initialization code.
+ * Should be called at the start of the printing program.
+ */
+extern f_init();
+/* f_init(printer,pgmname,dirvec,dirveclen,num,den,mag,options)
+ * FILE *printer;
+ * char *pgm_name,dirvec[];
+ * int dirveclen;
+ * long num,den,mag;
+ * unsigned long options;
+ */
+
+/* Called at the end of your program.
+ */
+extern f_term();
+
+/* Options to f_define_font
+ */
+
+
+/* Define a font for using.
+ * This can be called more than once for the same font.
+ */
+extern f_define_font();
+/* f_define_font(fontnum,options,area,name,mag,s,tfmchecksum)
+ * char *area,*name;
+ * unsigned long fontnum,options,mag,s,tfmchecksum;
+ */
+
+/* Hints as to what fonts are to be used.
+ * This is called once per page to give fonts module hints as what fonts
+ * are going to be used on this page.
+ */
+extern f_newpage();
+/* f_newpage(fontvec,charvec,veclen)
+ * unsigned long fontvec[];
+ * unsigned long charvec[][4];
+ * int veclen;
+ */
+
+/* Set a font as the current font.
+ */
+extern f_use_font();
+/* f_use_font(fontnum,font_space)
+ * unsigned long fontnum;
+ * long *font_space;
+ */
+
+/* Make sure that the font info for this character is loaded.
+ * This is here so fonts could be incrementally loaded into the printer,
+ * if so desired by fonts.c.
+ * This procedure is called for every character output to the printer,
+ * So it should be fast in the standard case.
+ * Should return how much the point moves after setting this character.
+ */
+extern int f_use_char();
+/* f_use_char(ch,pxlwidth,devwidth)
+ * unsigned long ch;
+ * long *pxlwidth,*devwidth;
+ */