From 24e5ab1b4f919db35a470cfb04f3a70f7bd126e5 Mon Sep 17 00:00:00 2001 From: Werner LEMBERG Date: Sat, 4 Mar 2000 06:35:35 +0000 Subject: [PATCH] * tmac/troffrc: Add tmac.lbp. * tmac/tmac.lbp: New file. * src/devices/grolbp/grolbp.man: Add documentation of `lbpname' command. --- ChangeLog | 10 +++++++ src/devices/grolbp/grolbp.man | 70 +++++++++++++++++++++++++++++++++++++++++++ tmac/tmac.lbp | 13 ++++++++ tmac/troffrc | 3 +- 4 files changed, 95 insertions(+), 1 deletion(-) create mode 100755 tmac/tmac.lbp diff --git a/ChangeLog b/ChangeLog index 0eaf7cc8..95964525 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2000-03-04 Werner LEMBERG + + * tmac/troffrc: Add tmac.lbp. + +2000-03-03 Francisco Andres Verdu + + * tmac/tmac.lbp: New file. + * src/devices/grolbp/grolbp.man: Add documentation of `lbpname' + command. + 2000-03-03 Werner LEMBERG * Makefile.in: Fixing $(subdir). diff --git a/src/devices/grolbp/grolbp.man b/src/devices/grolbp/grolbp.man index 0b8fc463..e66f37ad 100644 --- a/src/devices/grolbp/grolbp.man +++ b/src/devices/grolbp/grolbp.man @@ -1,5 +1,7 @@ '\" t .\" The above line should force the use of tbl as a preprocessor +.\" vim: set syntax=nroff : +.\" The above line should set vim into nroff mode .ig Copyright (C) 1994-2000 Free Software Foundation, Inc. @@ -263,6 +265,74 @@ file. Or you can use the .B \-l option to force the pages to be printed in landscape. +.SH FONT FILE FORMAT +In addition to the usual commands described in +.BR groff_font (@MAN5EXT@), +.B grolbp +provides the command +.I lbpname +which sets the font name sent to the printer when requesting this font. +The syntax of this command is: +.sp 1 +.in +2m +.B lbpname +.I printer_font_name +.in -2m +.IP \(bu +For bitmapped fonts, +.I printer_font_name +has the form +.sp 1 +.in +2m +.RI N\(la base_fontname \(ra\(la font_style \(ra +.in -2m +.sp 1 +.I base_fontname +is the font name as it appears in the printers font listings without the +first letter, up to (but not including) the font size. +.I font_style +can be one of the letters +.BR R , +.BR I , +or +.BR B , +indicating the font styles Roman, Italic and Bold respectively. +.IP +For instance, if the printer's +.I font listing A +shows font `Nelite12I.ISO_USA', the corresponding entry in the font +description file is +.sp 1 +.in +2m +.B lbpname NeliteI +.in -2m +.IP +Note that you may need to modify +.B grolbp +to add support for new bitmapped fonts, since the available font names and +font sizes of bitmapped fonts (as documented above) are hard-coded into the +program. +.IP \(bu +For scalable fonts, +.I printer_font_name +is identical to the font name as it appears in the printer's +.IR "font listing A" . +.IP +For instance, to select the `Swiss' font in bold style, which appears in +the printer's +.I font listing A +as `Swiss-Bold', the required +.B lbpname +command line is +.sp 1 +.in +2m +.B lbpname Swiss-Bold +.in -2m +.sp 1 +.PP +The argument of +.B lbpname +is case sensitive. .SH FILES .TP .B @FONTDIR@/devlbp/DESC diff --git a/tmac/tmac.lbp b/tmac/tmac.lbp new file mode 100755 index 00000000..3cba12c3 --- /dev/null +++ b/tmac/tmac.lbp @@ -0,0 +1,13 @@ +.nr _C \n(.C +.cp 0 +.ftr CW CR +.ftr C CR +.ftr CO CI +.ftr H HR +.ftr HO HI +.ftr HX HBI +.ftr Hr HNR +.ftr Hi HNI +.ftr Hb HNB +.ftr Hx HNBI +.cp \n(_C diff --git a/tmac/troffrc b/tmac/troffrc index 952c78f7..1fa055d7 100644 --- a/tmac/troffrc +++ b/tmac/troffrc @@ -14,11 +14,12 @@ .do ds troffrc!latin1 tmac.tty .do ds troffrc!utf8 tmac.tty .do ds troffrc!lj4 tmac.lj4 +.do ds troffrc!lbp tmac.lbp .do ds troffrc!html tmac.arkup .do if d troffrc!\*[.T] \ . do mso \*[troffrc!\*[.T]] .do rm troffrc!ps troffrc!Xps troffrc!dvi troffrc!X75 troffrc!X75-12 \ -troffrc!X100 troffrc!X100-12 troffrc!lj4 troffrc!html +troffrc!X100 troffrc!X100-12 troffrc!lj4 troff!lbp troffrc!html .do tr \[char160] .\" Set the hyphenation language to `us'. .do hla us -- 2.11.4.GIT