#include <stdio.h>
#include <fcntl.h>
#define MONTH "\202P\202P\214\216"
#define DAY1 "\202P\202U\223\372"
#define TILDE "\201\140"
#define DAY2 "\202P\202V\223\372"
#define KANJITXT MONTH DAY1 TILDE MONTH DAY2
FILE *prn;
main()
{
int point_size=24;
prn = fopen("lpt1","wb"); /* open lpt1 for writing */
fprintf(prn,"\33%%-12345X"); /* send UEL to get to PJL */
fprintf(prn,"@PJL ENTER LANGUAGE=PCL\n"); /* Enter PCL */
fprintf(prn,"\33E"); /* Esc E to reset printer */
fprintf(prn,"\33&t31P"); /* text parsing = Shift-JIS */
fprintf(prn,"\33(19K"); /* symbol set = Win3.1J */
fprintf(prn,"\33&a270P"); /* print direction = 270 */
fprintf(prn,"\33*p500x1300Y"); /* set CAP position */
fprintf(prn,"\33(s1p%dv0s0b28752T",point_size); /* MS-Mincho */
fprintf(prn,"\33&c-1T"); /* select vertical writing */
fprintf(prn, KANJITXT); /* print vertical text */
fprintf(prn,"\33*p500x%dY",1300-point_size*4); /* set CAP for
underline*/
/* draw underline */
fprintf(prn,"\33*c%da3b0P",300 * strlen(KANJITXT)/2 *
point_size/72);
fprintf(prn,"\f"); /* formfeed */
fprintf(prn,"\33%%-12345X"); /* send UEL to get to PJL */
}
Printer-Specific Differences 2-57
Содержание PCL 5
Страница 8: ...Contents 4 ...
Страница 174: ...5 8 Memory Usage ...
Страница 198: ...A 24 Printer Commands ...
Страница 201: ...8U Roman 8 R8 7J DeskTop DT Internal Symbol Set Charts B 3 ...
Страница 202: ...0N ISO 8859 1 Latin 1 E1 19U Windows 3 1 Latin 1 W1 B 4 Internal Symbol Set Charts ...
Страница 203: ...12U PC 850 Multilingual PM 10U PC 8 Code Page 437 PC Internal Symbol Set Charts B 5 ...
Страница 204: ...12J MC Text MC 10J PS Text TS B 6 Internal Symbol Set Charts ...
Страница 205: ...11U PC 8 Danish Norwegian PD 13J Ventura International VI Internal Symbol Set Charts B 7 ...
Страница 206: ...1U Legal LG 14J Ventura US VU B 8 Internal Symbol Set Charts ...
Страница 207: ...6J Microsoft Publishing PG 9U Windows 3 0 Latin 1 WO Internal Symbol Set Charts B 9 ...
Страница 208: ...17U PC 852 Latin 2 PE 9T PC Turkish PT B 10 Internal Symbol Set Charts ...
Страница 209: ...9E Windows 3 1 Latin 2 WE 2N ISO 8859 2 Latin 2 E2 Internal Symbol Set Charts B 11 ...
Страница 210: ...5N ISO 8859 9 Latin 5 E5 5T Windows 3 1 Latin WT B 12 Internal Symbol Set Charts ...
Страница 211: ...9J PC 1004 Code Page 1004 PU 26U PC 775 Code Page 775 PV Internal Symbol Set Charts B 13 ...
Страница 212: ...19L Windows Baltic WL 6N ISO 8859 10 Latin 6 E6 B 14 Internal Symbol Set Charts ...
Страница 213: ...6M Ventura Math VM 8M Math 8 M8 Internal Symbol Set Charts B 15 ...
Страница 214: ...5M PS Math MS 15U Pi Font PI B 16 Internal Symbol Set Charts ...
Страница 215: ...19M Symbol Font AS 579L Wingdings Font L Internal Symbol Set Charts B 17 ...
Страница 216: ...9L Ventura ITC Zapf Dingbats DV 10L PS ITC Zapf Dingbats DS B 18 Internal Symbol Set Charts ...
Страница 217: ...11L ITC Zapf Dingbats series 100 D1 12L ITC Zapf Dingbats series 200 D2 Internal Symbol Set Charts B 19 ...
Страница 218: ...13L ITC Zapf Dingbats series 300 D3 B 20 Internal Symbol Set Charts ...
Страница 221: ...Table B 2 Roman 8 Character Conversion Internal Symbol Set Charts B 23 ...
Страница 222: ...Table B 2 Roman 8 Character Conversion continued B 24 Internal Symbol Set Charts ...
Страница 223: ...Table B 2 Roman 8 Character Conversion continued Internal Symbol Set Charts B 25 ...
Страница 224: ...Table B 2 Roman 8 Character Conversion continued B 26 Internal Symbol Set Charts ...
Страница 225: ...Table B 2 Roman 8 Character Conversion continued Internal Symbol Set Charts B 27 ...
Страница 226: ...Table B 2 Roman 8 Character Conversion continued B 28 Internal Symbol Set Charts ...
Страница 227: ...Table B 2 Roman 8 Character Conversion continued Internal Symbol Set Charts B 29 ...
Страница 228: ...B 30 Internal Symbol Set Charts ...
Страница 248: ...C 20 Symbol Set and Typeface Codes ...