
/*
 *  	Header file for p_out.c + lips3.c (dviprt)
 *								18 June 1992, written by SHIMA
 */

/* LBP internal scalable kanji fonts orientation parameters */
#define	K_BASE_L 79;	/* 漢字ベースラインに対する相対位置
										のデフォルト．漢字の高さを１０００
										とした時の相対値．大きいと漢字は沈
										む．-pljで変更可能*/
#define	K_BASE_D -1	/*  Arrange of dot height of scalable
										Kanji fonts.
										A larger number means that Kanji
										fonts move to lower position	*/
#define K_SCALE_L 1047;	/* 漢字の幅，高さ調整のデフォルト．
										漢字の高さを１０００とした時の相対値．
										-plsで変更可能*/
#define LBP_ORIG_DPI 300;	/* LIPS3本来の dpi 値．漢字の幅調整に
										chars/inch x 100をLIPS3が用いるため
										-dpiによるdpi値と別個に必要．-plDで
										変更可能．このパラメータはジョブ開始
										命令にも使われる．*/

/* LBP downloading factor */
#define		MAXDWIDTH	128	/* maximal width of download font cell */
#define		MAXDHEIGHT	127	/* maximal height of download font cell */
#define		MAXDFONT	32	/* maximal number of download font sets */

/* LBP control commands */
#define		MOVE_CAP	"\233" "%u;%uf"
#define		CHANGE_G0	"\233" "%u%%v"
#define		CHANGE_G1	"\233" "%u;2%%v"
#define		ASSIGN_G0	"\233" "%u;1 D"
#define		ASSIGN_G1	"\233" "%u;2 D"
#define		MOVE_BELOW	"\233" "%ue"
#define		MOVE_ABOVE	"\233" "%uk"
#define		MOVE_RIGHT	"\233" "%ua"
#define		MOVE_LEFT	"\233" "%uj"
#define		MOVE_ABOVE1 "\233" "1k"
#define		MOVE_LEFT1	"\233" "1j"
#define		ROTATE		"\233" "1%%r"
#define		CHR_PITCH	"\233" "?%d K"
#define		CHR_SIZE	"\233" "%d C"
#define		DISPLAY		"\220" "2y%s\234"
#define		COPYS		"\233" "%uv"
#define		PAGE_FORMAT	"\233" "%up\x9b""8;0 G"
#define		SPECIALC	"\233" "1.v"

#define		G1GRPH2		"\033" "$)"
#define		FWEIGHT		"\233" "%d;23m"
#define		FACE		"\233" "%uy"
#define		HOME_POS	"\233" "x"
#define		SET_POS		"\233" "1x"

#define		BOLD		"\233" "1m"
#define		BBOLD		"\233" "1;1m"
#define		NO_BOLD		"\233" "22m"
#define		PFILL		"\233" "?5m"
#define		NO_PFILL	"\233" "?25m"
#define		SHADOW		"\233" "?6m"
#define		NO_SHADOW	"\233" "?26m"
#define		OUTLINE		"\233" "?7m"
#define		NO_OUTLINE	"\233" "?27m"

#define		SHIFTOUT	0x0e
#define		SHIFTIN		0x0f

#define		JIS83		0xc2

#define		D_HEAD		9
#define		WEIGHT		22

#define		ROTATE_CHAR	"\233" "%d&t"
#define		TATEGAKI	"\233" "?29h"
#define		YOKOGAKI	"\233" "?29l"

/* LIPS3 Vector Mode Commands */
#define		VD_FONT_DECL	" <Mincho-Medium" "\x1f"\
							"Gothic-Medium" "\x1f"\
							"RoundGothic-Light" "\x1f"\
							"Kyokasho-Medium" "\x1f"\
							"Kaisho-Medium" "\x1e"
#define		VD_GSET_DECL	" ;" "2\x42" "\x1e"
#define		GOTO_VD_MODE	"\x9b" "0&}"
#define		GOTO_TEXT_MODE	"}p\x1e"
#define		START_PICT		"#\x1e"
#define		SET_VD_UNIT		"!0\x23\x1e"	/* VD unit = pixel size */
#define		DRAW_START		"$\x1e"
#define		END_PICT		"%%\x1e"

#define		VD_CHANGE_G0	"T%s\x1e" "]" "1\x1e"
#define		VD_CHANGE_G1	"m%s\x1e" "\x60" "1\x1e"
#define		VD_FONT_ROT		'Z'
#define		VD_FONT_HEIGHT	"Y%s\x1e"
#define		VD_FONT_WIDTH	"V%s\x1e"
#define		VD_FONT_LEVEL	"U2\x1e"
#define		VD_PUT_CHAR1	"40"
#define		VD_PUT_CHAR2	"1"
#define		VD_OUTLINE		"}^\x29\x22\x1e"
#define		VD_NORMAL		"}^10\x1e"


