summaryrefslogtreecommitdiff
path: root/print/pic2fig/files/patch-plfig.c
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-29 14:02:16 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-29 14:02:16 +0000
commitba06c2d6a37dc081a3a8c5a01426a0a009428ca9 (patch)
tree7b1cdea9a21ff4ed307e29514e9d8286d9d83dfa /print/pic2fig/files/patch-plfig.c
parentStage, and pull the patches into a sed command. (diff)
Rename p*/ patch-xy patches to reflect the files they modify.
Notes
Notes: svn path=/head/; revision=363322
Diffstat (limited to 'print/pic2fig/files/patch-plfig.c')
-rw-r--r--print/pic2fig/files/patch-plfig.c69
1 files changed, 69 insertions, 0 deletions
diff --git a/print/pic2fig/files/patch-plfig.c b/print/pic2fig/files/patch-plfig.c
new file mode 100644
index 000000000000..0f790a482365
--- /dev/null
+++ b/print/pic2fig/files/patch-plfig.c
@@ -0,0 +1,69 @@
+--- plfig.c.orig Tue Jul 5 09:21:25 1988
++++ plfig.c Wed Apr 3 10:27:15 2002
+@@ -121,7 +121,48 @@
+ htrue = vtrue = 0;
+ }
+
+-troff(s) /* handle ".ps n" to set the pen size to "n" pixels */
++/* handle ".ps n" to set the pen size to "n" pixels */
++/* handle ".ft n" to set the output font to number n
++ (.ft value)
++ -1 Default font
++ 0 Times Roman
++ 1 Times Italic
++ 2 Times Bold
++ 3 Times Bold Italic
++ 4 AvantGarde Book
++ 5 AvantGarde Book Oblique
++ 6 AvantGarde Demi
++ 7 AvantGarde Demi Oblique
++ 8 Bookman Light
++ 9 Bookman Light Italic
++ 10 Bookman Demi
++ 11 Bookman Demi Italic
++ 12 Courier
++ 13 Courier Oblique
++ 14 Courier Bold
++ 15 Courier Bold Oblique
++ 16 Helvetica
++ 17 Helvetica Oblique
++ 18 Helvetica Bold
++ 19 Helvetica Bold Oblique
++ 20 Helvetica Narrow
++ 21 Helvetica Narrow Oblique
++ 22 Helvetica Narrow Bold
++ 23 Helvetica Narrow Bold Oblique
++ 24 New Century Schoolbook Roman
++ 25 New Century Schoolbook Italic
++ 26 New Century Schoolbook Bold
++ 27 New Century Schoolbook Bold Italic
++ 28 Palatino Roman
++ 29 Palatino Italic
++ 30 Palatino Bold
++ 31 Palatino Bold Italic
++ 32 Symbol
++ 33 Zapf Chancery Medium Italic
++ 34 Zapf Dingbats
++*/
++
++troff(s)
+ char *s;
+ {
+ if (strncmp (s, ".ps", 3) == 0) {
+@@ -131,6 +172,16 @@
+ pensize (size);
+ else
+ fprintf (stderr, "Malformed .ps command: %s\n", s);
++ return;
++ }
++ if (strncmp (s, ".ft", 3) == 0) {
++ int size;
++ extern int font;
++
++ if (sscanf (s + 3, " %d ", &size) == 1)
++ font = size;
++ else
++ fprintf (stderr, "Malformed .ft command: %s\n", s);
+ return;
+ }
+