Debian Codegraph @

CHANGES

raw
1 Changes to fig2dev
2 ===============================================================================
3 Version 3.2
4 ===============================================================================
5 Patchlevel 9a (Dec 2024)
6
7 NEW FEATURES:
8 o Specify pdf minor version with option -Y.
9 o Specify width (-Z <wid>w) or height (-Z <height>h) of figure.
10
11 BUGS FIXED:
12 Ticket numbers refer to https://sourceforge.net/p/mcj/tickets/#.
13 o Correctly read from a pipe, ticket #156.
14 o Fix behavior of option -F for e(e)pic and latex outputs, ticket #157.
15 o Compounds containing ascii-only text would disable utf-8 output, #158.
16 o Option --enable-versioning works in out-of-tree builds.
17 o Correct links to embedded image files in svg output.
18 o Correct font size in svg output, ticket #176.
19
20 -------------------------------------
21 Patchlevel 9 (Aug 2023)
22
23 NEW FEATURES:
24 o Write utf8-encoded postscript and tex-outputs.
25
26 BUGS FIXED:
27 Ticket numbers refer to https://sourceforge.net/p/mcj/tickets/#.
28 o Include sys/wait.h to build on some bsds.
29 o Process crafted input files, tickets #142, #145, #146, #147, #148,
30 and #152.
31 o Correctly scale dxf output, ticket #91.
32 o Correct a typo causing incorrect eps import, ticket #137.
33 o Regression, pass driver names to driver, ticket #139.
34
35 -------------------------------------
36 Patchlevel 8b (Aug 2021)
37
38 NEW FEATURES:
39 o Detect the output language from the output file name.
40 o On the command line, a minus (-) as input or output file name refers
41 to standard input or standard output.
42
43 BUGS FIXED:
44 o Correct buffer overflows and segfaults, mainly due to maliciously
45 crafted input files, tickets #113-117, #122, #123, #125-#135.
46 o With -Lepic -P, generate a complete tex file.
47 o Correctly produce a gif if a transparent color is given, ticket #121.
48 o Return with error if no space is left on the device. Ticket #101.
49
50 -------------------------------------
51 Patchlevel 8a (Mar 2021)
52
53 BUGS FIXED:
54 o Allow closed splines with three points.
55 o Fix build under Darwin.
56
57 -------------------------------------
58 Patchlevel 8 (Dec 2020)
59
60 NEW FEATURES:
61 o Use deflate to embed image data into eps output, often substantially
62 reducing file size.
63 o Embed pdf files into ps output by converting the pdf to eps.
64 o Allow negative arrow widths. This might be useful for asymmetric arrow
65 tips, which can thus be mirrored around the corresponding line.
66
67 BUGS FIXED:
68 Ticket numbers refer to https://sourceforge.net/p/mcj/tickets/#.
69 o Reject negative text font sizes. Fixes ticket #86.
70 o Allow fig files ending without previous eol character. Fixes #83, #84.
71 o Accept text and ellipse angles only within -2*pi to 2*pi. Fixes #76.
72 o Allow -1 as default TeX font, not only 0. Fixes #71, #75, #81.
73 o Do not allow ASCII NUL anywhere in input. Fixes #65, #68, #73, #80.
74 o Use getline() to improve input scanning.
75 Fixes tickets #58, #59, #61, #62, #67, #78, #79, #82.
76 o Correctly scan embedded pdfs for /MediaBox value.
77 o Convert polygons having too few points to polylines. Ticket #56.
78 o Reject huge arrow types causing integer overflow. Ticket #57.
79 o Allow Fig v2 text strings ending with multiple ^A. Ticket #55.
80 o Embed images in pdfs with their original compression type, i.e., leave
81 the gs switch "-dAutoFilterColorImages" at its default value "true".
82
83 -------------------------------------
84 Patchlevel 7b (Nov 2019)
85
86 NEW FEATURES:
87 o A X color database is not needed, but can be provided. The location of
88 the database can be given at compile time, default /etc/X11/rgb.txt.
89
90 BUGS FIXED:
91 Debian bug numbers refer to https://bugs.debian.org/#.
92 o Do not clip objects with line-thickness 0 having arrows. Ticket #53.
93 o Do not segfault on circle/half circle arrowheads with a magnification
94 larger 42. Always draw circle arrowheads with 40 points. Ticket #52.
95 o Allow circles or ellipses with negative radii. Ticket #49.
96 o Avoid "dimension too large error" with tikz output by avoiding
97 coordinate values smaller than -16383.
98 o Make tests (test1.c) work with -fsanitize=address compiler option.
99 o Obey join-style of lines in tikz output.
100 o Pass utf8-strings to svg output, escape some chars (<>&).
101 o Accept inclined boxes and change them to polygons. Fixes ticket #43.
102 o Make tests #27 and #33 work on Mac Darwin, failed due to whitespace
103 formatting differences. From Hanspeter Niederstrasser. Ticket #40.
104 o Use only latex, neither etex or tex, to test tikz output. Usage of
105 etex, after hint from Roland Rosenfeld, closed debian bug 920368.
106 o For tikz output, do not draw arrows on a single point line.
107 o Omit spurious showpage when including jpg-file. From Rainer Buchty.
108 o Correct a few memory leaks and corruptions. See commit d1c54f6.
109 o Change negative color numbers to default color. Fixes ticket #30.
110 o A spline with one point would cause segfault. Fixed, see ticket #29.
111 o Allow one char without newline in the last line of an input file.
112 Fixes ticket #28.
113 o Harden input, mainly against files in which an incomplete object would
114 be created and freeing the object would violate memory, i.e, it may
115 cause segfault. See, e.g., ticket #27.
116 o Properly initalize line storage when reading fig files version 1.3.
117 Would segfault when reading incomplete line and trying to free it.
118 Fixes ticket #26, debian bug 906743.
119 o Silently ignore the hundred-first and more comment lines. This
120 fixes ticket #25 and debian bug 906740.
121 o Use SetFigFont, not SetFigFontNFSS in pictex output. Fixes
122 https://bugs.launchpad.net/ubuntu/+source/transfig/+bug/1359485 .
123 o Accept blanks in color names (e.g., fig2dev -L eps -g"Misty Rose"..).
124 o Correct typos in man-pages, debian 30_man_typo.patch.
125
126 -------------------------------------
127 Patchlevel 7a (May 2018)
128
129 NEW FEATURES:
130 o Add option -w, wrap (create stand-alone perl file) for Perl/Tk output.
131 o Distribute the X bitmaps files within fig2dev, no need to install
132 these files. The files were needed for Tk and Perl/Tk output.
133
134 BUGS FIXED:
135 o Fix regression whereupon flipped ellipses were not read. Ticket #23.
136 o Distribute i18n files ru_RU.CP1251.ps and uk_UA.KOI8-U.ps.
137 o Make test "survive debian bug #890016" succeed on 32 bit systems.
138
139 -------------------------------------
140 Patchlevel 7 (April 2018)
141
142 OPTION LETTER CHANGES:
143 o Language previous option current option
144 ------------------------------------------------------------
145 cgm -b dummy -a
146 epic -A scale -d scale
147 eepic -A scale -d scale
148 eepicemu -A scale -d scale
149 gbx -i on|off -v
150 ibmgl -m mag,xoff,yoff -m mag -x xoff -y yoff
151 mp -I file -d file
152 ps -S dummy -o
153
154 NEW FEATURES:
155 o Print language-specific help text by using fig2dev -L lang -h.
156 o Add option -M, multipage, for MetaPost output language.
157 o Add option -P, pagemode, and -z to choose a pagesize for pdf output.
158 o Add option -W (scaling of figures not possible) for tikz.
159 o Add option -b, border width, for LaTeX output language.
160 o Add option -f for pstex_t and pdftex_t output language.
161 o Add uk_UA and ru_RU encodings for PostScript output. Ticket #12.
162
163 BUGS FIXED:
164 o Update help text: Output help for dxf and textyl output language,
165 add description of -g option for Tk/Tcl and Perl/Tk output, allow -f
166 option for pstex_t and pdftex_t output language.
167
168 Debian bug numbers refer to https://bugs.debian.org/#.
169 Ticket numbers refer to https://sourceforge.net/p/mcj/tickets/#.
170 o Sanitize input. Do not segfault on malformed input files. Fixes debian
171 bugs 881143, 881144, 881396, 890015, 890016, 882021 and also 882022.
172 o Do not put an %%Orientation: comment into PostScript output. Some
173 viewers would rotate the resulting file, others not.
174 o Fix build on NetBSD, which has a _setmode() function different from
175 _setmode() on Windows. Ticket #17. Also, avoid alloca(). Ticket #16.
176 o tikz output: Omit the semicolon after \pgftext[..]{...};.
177 o Define PostScript patterns with larger tiles, may render better. #13
178 o Fix build in case libXpm is missing. Ticket #15.
179 o Use netpbm programs instead of ghostscript, to produce smaller files.
180 o Correctly embed eps files with binary preview (epsi, typically
181 found on Microsoft systems). Also, allow to embed ps-files. Fixes
182 debian bug 248807, ticket #8.
183 o For compilation, do not depend on PATH_MAX being defined.
184
185 -------------------------------------
186 Patchlevel 6a (January 2017)
187
188 NEW FEATURES:
189 o Distribute transfig.pdf. No need to build it from the TeX sources.
190 o Enable reproducible build for svg output.
191 o Set the creator to fig2dev, not to the path by which fig2dev is
192 invoked.
193
194 BUGS FIXED:
195 Ticket numbers refer to https://sourceforge.net/p/mcj/tickets/#.
196 o The svg output now produces correct patterns and pie-wege arcs.
197 Property names instead of style attributes are used. Hollow arrow
198 heads are really hollow, not filled with white. In the PostScript
199 output, this might also clip a bit of the filling underneath an arrow.
200 o tikz output: Re-use \dimen \XFigu if it is already defined. Ticket #3.
201 o tikz output: A pattern in an object with line width zero and the
202 stroke color equal to the fill color would produce a white fill.
203 The tikz output now does not try to be smart and puts a pattern, even
204 if the result is equal to a solid fill. Ticket #1.
205 0 pict2e output: Standalone tex-files always include color.sty. #2.
206 o pict2e output: A pattern with stroke color equal to fill color is
207 rendered as a solid fill.
208 o Compiles when gnu iconv and standard iconv are present.
209
210 -------------------------------------
211 Patchlevel 6 (August 2016)
212
213 BUGS FIXED:
214 o Add compile switch --enable-versioning and script update-version_m4,
215 to create version string from source control system
216 o tikz output: Support -G (grid) option. Make \XFigwidth and \XFigheight
217 only scale coordinates, not line widths; Do not set unnecessarily
218 \color{black} on text.
219
220 From Roland Rosenfeld <[email protected]>
221 o Correct comment string in man page fig2ps2tex.1
222 o Distribute autotest file lookup_X_color.at - only useful for hacking
223
224 -------------------------------------
225 Patchlevel 6-rc (July 2016)
226
227 CHANGE OF THE PACKAGE NAME TO FIG2DEV
228 The package is now called fig2dev, because this is the main component
229 of the package. Transfig is considered obsolete.
230
231 BUGS FIXED:
232 o Compiles on darwin.
233
234 From Brian V. Smith:
235 o Changed object defs from O_ to OBJ_ because O_TEXT conflicts
236 with system typedef (debian 37_OBJ_typedef.patch)
237 o Remove unused charset variables cs and ca from genibmgl.c
238 (debian 38_unusedcharset.patch)
239 o Build with make CFLAGS="-Werror -Wpedantic -Wformat -Wformat-security'
240 o On lines with Round or Projecting cap style and arrowheads, the line
241 endpoint stuck out beyond the arrowhead (this was fixed in
242 xfig 3.2.5c, but not here until now; debian 41_arrowhead.patch)
243 o Changed .ce (center lines) to .RS (right-justify) in fig2ps2tex man
244 page file because of issues when generating HTML (From Eric Raymond)
245 (debian 36_manpage_ce2RS.patch)
246 o Quotes added to output file name for several formats in case there
247 are blanks in the name (debian 39_gs_quote.patch)
248 o For PDF output, changed -dColorImageFilter from /FlateEncode to
249 /DCTEncode for lossy compression (smaller pdf files)
250 (debian 40_ColorImageFilter.patch)
251 o Update help for PDF options (debian 42_PDF_help.patch)
252
253 From Roland Rosenfeld. Bug numbers refer to https://bugs.debian.org/#.
254 o Remove bashisms in fig2ps2tex script. Reported from
255 Chris Lamb <[email protected]>. Fixes debian bug 480615.
256 o Include sys/stat.h in genps.c. Reported from Steven Chamberlain
257 <[email protected]>. Debian bug 654767. (28_fix_chmod...patch)
258 o Distribute the man page transig.1. (34_transfig.1.patch)
259 o Do not report user information in ps files. Debian bug 316382
260 (04_displaywho.patch)
261 o Set locale to C. Debian bug 45378 (05_locale_patch).
262 o Support pdftex in transfig (20_transfig_pdftex.patch). Reported by
263 Jindrich Makovicka <[email protected]>.
264 o Fix some typos (22_typos.patch, 35_manpage_typos.patch).
265 o Honor environment variable SOURCE_DATE_EPOCH, for reproducible
266 builds. Debian bug 819911. From Alexis Bienvenüe <[email protected]>.
267 (33_honour_SOURCE_DATE_EPOCH.patch).
268 o Enable fonts >= 42 pt, needs \usepackage{type1cm}. Bug 343139,
269 (09_maxfontsize.patch).
270
271 -------------------------------------
272 Patchlevel 6-beta (April 2016)
273
274 NEW FEATURES:
275 o New pict2e and tikz output language, for use with TeX/LaTeX.
276 o Compile with ./configure; make; make install.
277 Optionally, use make check; make installcheck.
278 o By default, transfig is not built.
279
280 BUGS FIXED:
281 o Swap patterns in PostScript output, were upside down.
282 o Silence most compiler warnings.
283 o Update man-pages and help text.
284 o Accurately position arrowheads, flush with line, in PostScript output.
285
286 -------------------------------------
287 Patchlevel 5e (August 2013)
288
289 BUGS FIXED:
290 o HTML map output was limited to 100 links.
291 Fix by Jan van Dijk
292 o Updated for compatibility to PNG 1.5
293 From Matthias Scheler
294 o Was adding "showpage" command when producing bitmap formats from intermediate EPS.
295 This produced "illegal" PNG and JPEG files with extra, blank image.
296 o Maximum width of included image in PS/EPS output increased from 8192 to 16384
297 o Precision of some PIC objects increased from %.2f to %.3f
298 o Double close of output file when ghostscript fails. Original bug report from
299 https://bugzilla.redhat.com/728825
300
301 -------------------------------------
302 Patchlevel 5d (July 23, 2010)
303
304 BUGS FIXED:
305 o reduces some compilation warnings (fix from Debian)
306 o made PostScript output DSC 3.0 compliant to work with CUPS
307 patch from Ian Dall (see https://bugzilla.redhat.com/558380)
308 o Changed STOCK_LAST from 17 to 19 in fig2dev/dev/genemf.c
309 o Questionable copy of one data type to another in genemf.c
310 o Uninitialized linew_spec in genepic.c
311 o Changed definition of command for short slanted lines in genlatex.c
312 o Added check for existance of arrows in SVG line generator
313 o Removed %%Page: directive from included JPEG files in PostScript/EPS output
314 o bound.c was passing pointers to int instead of double to arc_tangent
315 o put_msg function uses proper varargs now
316 o Option for debug comments in GBX output is "yes" or "no", not "on" or "off"
317 o Added help (-h) info for GBX output
318 o In version 1.4 of the PNG library dither was removed so fig2dev now uses
319 quantize when importing PNG images with palettes
320 o put_msg was declared twice (fig2dev/dev/genemf.c)
321 o Added xlink namespace for images in SVG export
322 o SVG output for imported images didn't form href link properly
323 o PIC floating point numbers were only 2 decimal places - now 3 (Debian bug #611948)
324 Fix thanks to Roger Leigh (Debian Project)
325 o PIC output text had leading blanks (Debian bug #611977)
326 Fix thanks to Roger Leigh (Debian Project)
327 o LaTeX commands for small and tiny dots missing "." (e.g. \small.)
328 from Thomas Loimer
329
330 NEW FEATURES:
331 o New PSTricks driver from Gene Ressler (see man fig2dev for info)
332
333 -------------------------------------
334 Patchlevel 5c (Jan 4, 2010)
335
336 BUGS FIXED:
337 o transfig command was hardwired for "tex" for "make all" directive and
338 removing files with "make clean" directive in creating Makefile
339
340 -------------------------------------
341 Patchlevel 5b (Jun 2, 2009)
342
343 NEW FEATURES:
344 o -a option added to PostScript and PICTeX languages to NOT include user's
345 login name in output
346 o Gerber (RS-247-X for CAD drawings for printed circuits) export language from Edward Grace
347
348 -------------------------------------
349 Patchlevel 5a (Jun 1, 2009)
350
351 NEW FEATURES:
352 o 22 new arrowhead types
353 o HTML map now produces reference to .png file instead of .gif
354
355 BUGS FIXED:
356 o CreationDate in pictex output was either wrong or caused segfault
357 o bugs fixed in SVG Driver:
358 - blue component of shaded colors was always zero
359 - line protruding beyond arrowhead on long arrows
360 - wrong position of back arrowhead on double-headed arrows
361 - fill patterns either missing or using incorrect linewidth
362 - lowercase greek phi did not match its X11 counterpart
363 from Martin Kroeker
364 o dubious printf(j++,j++) in MP driver
365 o missing #includes in MP driver
366 o added !defined(__FreeBSD) to fig2dev.h def for sys_nerr and errno
367 From Eric Scott
368 o added -quiet options to giftopnm and ppmtopcs in reading GIF files
369 From Eric Scott
370 o Typo in LaTeX driver when generating arc-box. "iut" should be "put"
371 o extraneous stroke:black in svg header removed along with stroke color
372 for text, since the text fill color does the whole job
373 o fig2dev produces more correctly structured PostScript. Files get printed via
374 CUPS on PostScript printers. When viewing a .ps-file in gv you can go to the
375 last page and back and to the last page again without getting PostScript errors.
376 From Ronald Lembcke
377 o Renamed the macro \SetFigFont to \SetFigFontNFSS if NFSS is #defined to alleviate
378 some problems. From Roland Rosenfeld.
379 o Grid in metric mode was incorrectly scaled
380 o Removes any %EOF or %%EOF from imported EPS pictures before exporting.
381 Also doesn't add %EOF when importing JPEG file now.
382 o Missing call to get local time before converting to string in genpictex.c
383
384 -------------------------------------
385 Patchlevel 5 (Feb 27, 2007)
386
387 NEW FEATURES:
388 o SVG driver adds color and pattern filling to arcs
389 from Martin Kroeker
390
391 BUGS FIXED:
392 o bug which made arrowheads too short fixed
393 o SVG driver corrects the ugly arrowheads on stick arrows
394 from Martin Kroeker
395 o EMF driver would crash when fed stdin
396 from Martin Kroeker
397 o Unhandled case for linetypes in latex driver
398 o CUPS didn't like the order of some of the Postscript header
399 from Ian Dall
400
401 -------------------------------------
402 Patchlevel 5-alpha7 (Oct, 27, 2005)
403
404 NEW FEATURES
405 o Updated SVG driver from Martin Kroeker was missing from alpha6
406 o Another SVG update: Use a font-family list of "Times,Symbol" for symbol
407 characters - the Times fontface does not contain all elements of the
408 Symbol font on all platforms
409
410 BUGS FIXED:
411 o Typo in font name (was cmit10, should be cmti10) in MetaPost driver
412 This bug fix was omitted from alpha6
413
414 Patchlevel 5-alpha6 (Oct, 12, 2005)
415
416 NEW FEATURES:
417 o Added -dPDFSETTINGS=/prepress option to ghostscript when generating
418 PDF output to improve quality of bitmap graphics
419 o Fill patterns now use PostScript Level 2 built-in pattern commands
420 for Postscript/EPS/PDF and bitmap output
421 From Konstantin Shemyak
422 o Updated SVG driver from Martin Kroeker
423 o New -K option to size bounding box to whole figure when exporting
424 only certain depths
425 From Dirk Osswald
426
427 BUGS FIXED:
428 o Typo in font name (was cmit10, should be cmti10) in MetaPost driver
429 o When all texts were "special" (LaTeX coded) in a figure, ISO
430 characters weren't encoded in straight PS and PDF output
431 o Bug in radius for circles in SVG driver (dev/gensvg.c)
432 o fig2dev.man was missing many papersize options
433 o Double fclose() in bitmap driver
434
435 -------------------------------------
436 Patchlevel 5-alpha5 (April, 26, 2004)
437
438 NEW FEATURES:
439 o Raster picture support added to SVG driver. (In SVG, this translates
440 to a link to the image file plus rotation/scaling information.
441 While 'conformant' SVG viewers need only support PNG and JPEG, there
442 is no a filetype test, as there is no limit on supported formats
443 in the standard, and e.g. Batik is able to display XBM and GIF in
444 addition. Added code for rounded boxes (polyline subtype 4).
445 Added code for boxes, explicit support for polygons. Added
446 xml-space:preserve qualifier on texts to preserve whitespace. Rewrote
447 fill pattern handling to generate patterns as needed - adding support
448 for penwidth and color. Corrected tiling of all shingle patterns and
449 reversal of horizontal shingles.
450 From Martin Kroeker
451 o Better arrowheads in SVG driver. Corrected font family selection.
452 Corrected (and simplified) calculation of white-tinted fill colors
453 (and removed the HSV/RGB conversion code).
454 From Justus Piater
455
456 BUGS FIXED:
457 o Typo in LATEX_AND_XFIG file. Text should be:
458 \convertMPtoPDF{foo.0}{1}{1}
459 It was missing parameters {1}{1}
460 o Depth filter option -D was parsing range (e.g. 40:80) incorrectly
461 Fix from Justus Piater
462 o C++ style comments "//" changed to "/* */" in genmp.c
463 o Integer overflow in computing some spline steps
464 o \pagestyle{empty} added for epic/eepic driver so it doesn't produce
465 unnecessary page number when LaTeXing
466
467 ---------------------------------
468 Patchlevel 5-alpha4 (Feb 19, 2004)
469
470 NEW FEATURES
471 o Many SVG driver enhancements from Martin Kroeker
472 ([email protected])
473 o New features in EMF driver from ITOH Yasufumi:
474 support for locale text (if iconv() is available),
475 arc box, open arc, rotated ellipse, picture,
476 dash-triple-dotted line style, and all fill patterns.
477
478 BUGS FIXED
479 o "cleandir" directive missing from doc/manual/Makefile
480 o Added note about requiring dummy argument for -R option
481 o SVG driver bug fixes: semicolon missing in CSS properties, multiline
482 string problem, width, height and viewbox attributes now relative to
483 figure bounds instead of pagesize. Fixes from Justus Piater.
484 o Font info was put in the pstex file even when there were only special
485 texts.
486
487 ---------------------------------
488 Patchlevel 5-alpha3 (Dec 9, 2003)
489
490 NEW FEATURES
491 o Global option "-Z maxdim" to scale figure so that largest dimension
492 (width or height) is maxdim inches
493 o Shapepar driver to generate shaped paragraphs for LaTeX (-L shape)
494 from Christian Gollwitzer
495 o I18N support postscript file installation moved to fig2dev/dev
496 directory and installed with InstallNonExecFile (imake directive)
497 o options -dAutoFilterColorImages=false and -dColorImageFilter=/FlateEncode
498 added to ghostscript call when exporting to pdf to improve image
499 quality during compression
500 o "Epoch" added to rpm spec
501 o New HP/GL2 driver from Glenn Burkhardt with paper size selection,
502 offset, centering and orientation options
503
504 BUGS FIXED
505 o comments about BINDIR added to fig2dev/Imakefile and transfig/Imakefile
506 so user can easily change installation directory of both programs
507 o MKDIRHIER used in Imakefile for installing support files instead of mkdir
508 o commands like \\small used instead of SetFigFont for thick and thin
509 dots for LaTeX export
510 From Bo Thilde
511 o removed typedefs of uint, ushort and ulong from genemf.h because
512 systems should already have those defined
513 o SVG driver not mentioned in fig2dev.1 (.man)
514 o shortened two fprintf calls in gensvg.c for HP-UX which can't handle
515 long strings
516 o If an imported picture path points to some directory which is not the
517 current directory, and there exists a picture file of the same name in
518 the current directory, and the correct file is not compressed, fig2dev
519 would use the file in the current directory because it stripped off
520 the path first. This was fixed by looking for the uncompressed name
521 first.
522 o Color values should be divided by 255, not 256 to produce values from
523 0 to 1.0 in LaTeX, Tk and PostScript drivers, and readpng and readpcx
524 utilities
525 o Increased precision of arc angles from %.1f to %.4f in PS/EPS/PDF
526 driver
527 o Postscript support files now installed with r/w permissions only (was
528 r/w/x)
529 o Metapost (mp) driver now generates all Fig styles of arrowheads
530 From Tim Braun
531 o Bug in pic preamble - default font size either 0 or garbage
532 o PDF not rotated anymore for landscape mode (similar to eps)
533 o fontmag not set when magnification was read from Fig file
534 o When there were only LaTeX special texts without backslashes (\) and
535 no other objects in the figure, a bounding box of 0 width was produced
536 for EPS, PS and PSTEX output.
537 o Added ZLIBDIR variable in fig2dev/Imakefile to specify zlib directory
538 if different from standard location
539 o pstex_t export lacked border option (-b) to align LaTeX text when
540 pstex figure specified border (also fixed in xfig Combined PS/LaTeX)
541 o warnings in gentpic.c caused failure of gcc on hppa architecture under
542 Debian
543 o cleaned up lots of implicit declarations of functions/procs
544 o transfig: the "psfig" language was missing from the list of languages,
545 making things go out of sync past "ps".
546 o transfig: "transfig -L pstex" was generating rules for ps not eps
547 o slight margin added to text bounds
548 o an incorrect printf specification (%d instead of %ld) in gemp.c
549 o "#include <varargs.h>" no longer needed (and is unsupported by gcc 3.3)
550 o Not a bug, really but a workaround for programs that generate Fig files
551 with arcs that have coincident start and end points with the intent
552 of making a circle (TCM apparently does this). Without this
553 workaround, such arcs have the same start and end angle, which
554 ghostcript and probably other PostScript interpreters take to mean
555 "don't draw anything". This fix adds 0.01 degrees to the end angle
556 if it is identical to the start angle.
557 o Exporting a file with a picture containing a path with blanks failed
558 o Incorrect ISO translation was:
559 "\\.S", /* latin capital letter S with dot above */
560 Should be:
561 "\\.Z", /* latin capital letter Z with dot above */
562 o LaTeX: Correction to the ISO-8859-2 ogonek diacritic mark now uses \k
563 instead of cedilla (\c). If the macro \k isn't defined in your
564 situation or you don't see the ogonek then define the macro: \def\k#1{\c{#1}}
565 before the \begin{document}.
566 From Jerzy Sobczyk
567 o Bug in user-defined colors when exporting to CGM. If color numbers
568 weren't contiguous, e.g. 32, 34, then it couldn't find color 34.
569 o glyphs in the Symbol font that have descenders weren't taken into
570 account when calculating text bounds
571 o missing blue and extra brown color in LaTeX driver
572 o \smash directive added back to text objects in eepic driver (was removed
573 in 3.2.4)
574 o Quotes in FIG2DEV_LIBDIR definition (fig2dev/Imakefile) interferred when
575 using $DESTDIR
576 o Comments not inserted in EMF output anymore (not valid in language)
577 o float/int mixup in printf in pic driver for font size caused default
578 font size to be 0
579 o bug in hp/gl (ibmgl) driver produced incorrect JCL code to enter HP/GL
580 mode when using -k option
581 o point size factor changed from 72.27 to 72 points per inch as specified
582 by HP tech notes
583 o change in 3.2.4 which included all "special" (LaTeX) texts in the
584 bounding box that don't have any backslashes ("\") in them failed to
585 take into account inline equations using the "$". Now those special
586 texts are also excluded from the bounding box calculation.
587 o various man page format errors fixed
588
589 -----------------------------
590 Patchlevel 4 (December 2002)
591
592 NEW FEATURES
593 o SVG (Scalable Vector Graphics) driver from Anthony Starks, modified
594 by Brian Smith and greatly enhanced by Martin Kroeker
595 o ASCII and Binary (TIFF) preview bitmap options for PostScript and EPS
596 export. The latter is useful for Microsoft products which require a
597 TIFF preview to display EPS on the screen. Use -A for ASCII preview,
598 use -C for color TIFF or -T for monochrome TIFF preview. These all
599 require ghostscript to work. If you don't have ghostscript, the
600 export will continue without a preview.
601 o JPEG encoding (DCT) now used for EPS/PostScript output. This greatly
602 reduces the size of the generated PostScript. Gleaned with permission
603 from jpeg2ps program written by Thomas Merz.
604 As a result of this, the jpeg library is no longer needed, although xfig
605 still needs it for JPEG support.
606 o Background (-g) option for tk export honored now
607 o Additional JPEG file format (EXIF) added. These usually come from
608 digital cameras.
609 o -N Option to convert colors to grayscale on export.
610 o -b option for CGM export to produce binary CGM using ralcgm. You must,
611 of course have ralcgm installed on your system to use this.
612 o Translations of LATEX.AND.XFIG document into two popular Chinese
613 encodings (GB2312 and Big5). These are called LATEX.AND.XFIG.zh_CN
614 and LATEX.AND.XFIG.zh_TW respectively.
615 From Mendel Chan
616 o The default for multi-page output (PostScript) is to NOT overlap pages
617 now. This is to allow multiple, independent pages of figures.
618 The -O option has been added to force page overlap, e.g. to cut and
619 paste pages together to make posters (the original use for multipage).
620 o Added EMF (Enhanced MetaFile) conversion genemf.c
621 from Mike Schrick (based on the CGM driver from Philippe Bekaert
622 o New grid option (-G) to draw grid on page. Specify minor and/or major
623 tick spacing in one of several units. For example, "-G .25:1cm" draws
624 a thin, gray line every .25 cm and a thicker gray line every 1 cm.
625 Specifying "-G 1in" draws a thin line every 1 inch. See man pages for
626 all units. Fractions may be used, e.g. -G 1/16:1/2in will make a thin
627 line every 1/16 (0.0625) inch and a thick line every 1/2 (0.5) inch.
628 Only implemented in PostScript, EPS, PDF, and bitmap (GIF, JPEG, etc)
629 drivers for now.
630 o Perk/Tk driver from Slaven Rezic ([email protected])
631 o Added options -B and -R to the EPS driver. This enables the user to
632 clip out a region for display in the EPS file. Very convenient when
633 using xfig via pstoedit as a postprocessor of ps files and one wants
634 to maintain the preview of the file in lyx. See the man for additional
635 information. From Morten S. Nielsen <[email protected]>
636 o New PostScript DSC directives to specify page size. Doesn't select
637 tray, which is device dependent, but works better with ghostscript,
638 ghostview and other PostScript interpreters.
639 o fig2dev now includes all "special" (LaTeX) texts that don't have any
640 backslashes ("\") in them in the bounding box.
641 o genepic and genpictex drivers updated for I18N (internationalization)
642 From T. Sato
643 o Glyphs for Hungarian, Polish, Romanian, Slovak and Slovenian
644 are essentially the same as Czech (ISO-Latin 2) so symbolic links are
645 created for those .ps files (hu_HU.ps, pl_PL.ps, ro_RO.ps, sk_SK.ps
646 and sl_SI.ps are linked to cs_CZ.ps)
647 o fig2dev prepends any path included in the .fig filename to imported
648 image file paths (only if imported image path isn't already absolute).
649 o transfig now reports when it is renaming an existing makefile or TeX
650 macro file to a backup (e.g. Makefile to Makefile~)
651 o now uses Thomas Merz' jpeg2ps for imported jpeg files when exporting
652 to PS/EPS. This is much more compact than the runlength encoding
653 which is used for other bitmaps. Many thanks to Thomas for his
654 permission to use jpeg2ps.
655 o New option for binary CGM export. The ralcgm program is required for
656 this option. See ftp://ftp.cc.rl.ac.uk/pub/graphics/ralcgm/
657 o New -E option to set encoding for pictex, latex, pstex_t and epic
658 text to ISO8859-1 (the default) or ISO8859-2
659 o Added "install.all" option to make to install man pages in addition to
660 executables etc.
661 o If output file ends in ".fig", fig2dev prints error message to stderr
662 and exits.
663 o New encoding option (-E) for ISO-8859-1 or ISO-8859-2 from Tomas Kopal
664 o Exporting to tk now supports imported PPM images in addition to GIF
665 and XPM
666 o Comments added to EPS and PostScript output so MetaPost can group parts of
667 figure according to depths. From Klaus Guntermann.
668 o New -F, -R and -t options for epic output (do "fig2dev -h" for info).
669 From Gabriel Zachmann.
670
671 BUGS FIXED
672 o When importing multiple GIF or PCX images, fig2dev would segfault on
673 Linux. This happened for two reasons: the GIF file was closed and
674 reopened, which would result in a different file structure being
675 closed by the calling routine, and a palette was being allocated for
676 the PCX image and never used.
677 o In multi-page mode for PDF export, figure was shifted up too far.
678 o The color gold was in the wrong place for LaTeX special text.
679 o Various extraneous variables removed
680 o In multipage mode (PostScript export), if the figure is smaller than
681 0.1 page, nothing was generated or printed.
682 o When exporting to EPS, the multipage flag was not cleared after
683 reading the file (options are set before reading file).
684 o Bug in the -D option (export or exclude certain depths) where it
685 wouldn't accept 0 as a depth specifier.
686 o Extra "char *c" definition in fig2dev/dev/readeps.c
687 o Possible data type problem with result of floor() in readeps.c - now
688 coerced with (int)
689 o fig2dev would sometimes emit the "transparentimage" for JPEG images
690 (it's only for GIF with a transparent color)
691 o Minor adjustment made in tk driver which fixes problem where objects
692 extend beyond the canvas, when the objects are very far away from the
693 origin (50 inches or more)
694 o Line join was not explicitely set to "miter" and line cap was not set
695 to "butt" explicitely at the beginning. This caused problems if the
696 figure was imported into another figure because settings from
697 importing document were used
698 o PNGINC Imakefile variable wasn't used
699 o Minimum length (MIN_LEN) for "LaTeX short lines" was calculated
700 incorrectly (was using 13 pixels instead of 13 points as per Lamport)
701 Also, actual length of line was compared instead of horizontal
702 component (or vertical component for vertical lines)
703 Fixed by Jacques Lefrere
704 o The lines in three patterns: 45 degrees left, 45 degrees right and
705 45 degrees crosshatch were too close together compared to the xfig
706 (on-screen) version
707 o Pagesize may have been one pixel too small when exporting to PDF
708 o Text font sizes for latex, pic and tpic output were incorrectly scaled
709 for metric Fig files (their units are points, not inches or cm)
710 o Added "&& !defined(__CYGWIN__) && !defined(__DARWIN__)" to declaration
711 of sys_errlist[], errno and sys_nerr. The __DARWIN__ is for Mac OSX
712 using X.
713 o Font size was incorrect for CGM output when exporting Fig 2.x files
714 o Bug introduced in 3.2.3d shifted rotated imported pictures
715 o Missing % from \end{picture} in generated latex code. This caused bad
716 extra spacing when the generated file is \input into a minipage or a
717 framebox, for instance.
718 Fix from Matthias Koeppe
719 o Not really a bug, but the text() proc in fig2dev/dev/gengcm.c was
720 renamed to cgm_text because of a bug in IBM's compiler which turns
721 text() into a .text assembler directive
722 o Options (fig2dev -h) incorrectly had "-p name" for pstex options
723 instead of pstex_t
724 o Updated language options in transfig to current set in fig2dev
725 o Incorrect adjustment of scale and canvas offset for tk and ptk
726 (perl/tk) export
727 o In the PIC driver, the macro PICFONTMAG should return int, but was
728 returning double, which then trashed following arguments to fprintf.
729 o Extraneous semi-colon (;) after closing brace } and/or empty default
730 case (no trailing semi-colon) causes HP ANSI compiler to complain
731 o Moved landscape rotation of page and Y-flip scaling inside
732 %%BeginPageSetup %%EndPageSetup block according to DSC, which says
733 that page orientation code should be there.
734 o ANSI style prototype for rgb2luminance did not match proc declaration
735 o When a compound object included lines that have arrowheads and large
736 coordinates (>= 100000), an incorrect bounding box was produced.
737 This same bug was in xfig 3.2.3d and earlier.
738 o Output file was being closed twice in CGM and PDF driver, causing
739 segfault on some systems.
740 o In the eepic driver, the thickness of a line may be incorrect if it a
741 has backward arrowhead of different thickness.
742
743 -----------------------------
744 Patchlevel 3d: (May 29, 2001)
745
746 NEW FEATURES
747
748 o MetaPost driver (-L mp or -L mmp) ported from fig2MP by Klaus
749 Guntermann ([email protected]). fig2MP was
750 written by Dane Dwyer ([email protected])
751 o Support for importing PNG image files added
752 o Transparent color in imported GIF files now honored
753 o You may use "-M -" to send the Makefile output to standard output from
754 TransFig, and "-T -" to send the Texfile to standard output.
755 o (The following feature was really added in 3.2.3, but I forgot to update
756 this file): -S option added for smoothing bitmap output.
757 o (The following feature was really added in 3.2.3b, but ... you know...):
758 eps added as a language for TransFig
759 o Support for Czech font encoding for PostScript (cs_CZ.ps)
760 From Radim Gelner <[email protected]>
761
762 BUGS FIXED
763
764 o #ifdef JPEG added in usage message for JPEG options
765 o Resolution variable (ppi) needed to be double. This caused roundoff
766 and overflow errors in several drivers.
767 o Comments longer than 200 characters in Fig files caused segfault.
768 Comments may now be of unlimited length.
769 o some bitmap files for tk driver had double brackets "{"
770 o The CGM driver didn't check if the "from" input was from stdin or a
771 file and segfaulted.
772 o Spline objects with trailing blanks (in file) made next object read
773 incorrectly.
774 o Bounding box incorrectly counted line thickness in imported picture
775 objects (they don't use the line thickness)
776 o The amount to shift a figure to 0,0 was rounded to integer, which
777 caused some figures to be clipped by the bounding box. This affected
778 eps and bitmap output.
779 o The ibmgl driver output NaNs because of a double/int mixup with printf
780 o Certain punctuation characters with descenders weren't taken into
781 account for text bounds.
782 o An extra page was generated for pdf output.
783 o Every object had 0.0000 coordinates when exporting to the MetaFont
784 driver.
785 o fig2dev would crash when reading FIG 3.1 files that have splines. The
786 problem was that the "points" component of the spline structure is in
787 a different position than in the line structure, causing arrow_bound
788 to use the wrong data.
789 o "%Page:" DSC comment is not generated generated for EPS now
790 o Trailing blank in spline object (after control points) caused problem
791 when reading Fig file
792 o TransFig didn't check whether Texfile or Makefile could be opened for
793 writing, causing segfault
794 o AutoRotatePages now set to None when using ghostscript to export PDF
795 o Changed explicit "ln -s" to use $(LN) for making symlinks during
796 install (fig2dev/Imakefile)
797
798 ------------------------------
799 Patchlevel 3c (July 25, 2000)
800
801 BUGS FIXED
802 o TransFig manual Makefile now calls ../../fig2dev/fig2dev preventing
803 the Catch-22 problem of having to install TransFig before you can
804 compile it
805 o fig2dev/dev/genpdf.c needs "#include <signal.h>" for some systems
806 o Added -m 644 to "install" directives in Imakefile to make updates
807 easier in future (no read-only files)
808 o LaTeX and pstex_t driver produced bogus \unitlength and \dashbox
809 values
810 o File ko_KR.ujis.ps removed because it is not needed
811
812 ------------------------------
813 Patchlevel 3b (July 19, 2000)
814
815 N.B. There was no transfig 3.2.3a - I want to keep the release number identical
816 to that of the corresponding xfig.
817
818 NEW FEATURES
819 o X11 Color database ASCII file (/usr/lib/X11/rgb.txt) is now used,
820 removing the need for the dbm_xxx functions.
821 o The \special code for colors in genlatex (LaTeX driver) replaced with
822 the \color code to be compatible with pdflatex and not require dvips
823 From Klaus Guntermann ([email protected])
824 o PCX image reader now handles 24-bit color which means that TIFF images
825 (which are converted to PCX first) may also be 24-bit
826
827 BUGS FIXED
828 o Exporting to PDF now sets bounding box to figure bounds instead of page
829 o Explicitely sets color to black before importing eps file in case that
830 file doesn't select a color
831 o Changed error message in epic driver from "Unknown style" to "Only
832 solid, dashed, and dotted line styles supported by epic(eepic)"
833 o Apostrophes (') in text are now escaped in CGM driver
834 from David Billinghurst ([email protected])
835 o One of the header values for TIFF files was incorrect (was "DD",
836 should be "II")
837 o -f (font) option wasn't parsed correctly, which caused segfault
838 o Bug in handling imported xpm file colors in certain formats
839 o Multiple variables with same name in different drivers now declared
840 "static"
841 o In multi-page mode, redundant "Page: 1 1" was generated
842 o Unnecessary scaling in the pattern definitions removed (pdf/ps/eps
843 drivers)
844 o Total page number calculation was incorrect for multi-page PostScript
845 output
846 o Toplevel Imakefile referred to "make" instead of "$(MAKE)"
847 o Text object read routine had extra variable in scanf
848 o Error in calculation of arc arrowhead occluding underlying line; could
849 cause asin domain error
850 o Possible error in reading imported GIF colormap
851 o calc_arrow() didn't set nboundpts (number of points in bounding box)
852 if line having arrowhead had zero length
853 o Bug in Imakefile - jpeglib.h file couldn't be found for JPEG code if
854 USEXPM was not enabled.
855 o "Special" LaTeX text not included in bounding box anymore - this had
856 caused positioning problems with the LaTeX special text and figure
857 o "hyphen" was misspelled as "hypen" the character encoding for the
858 PostScript (and EPS/PDF) driver.
859 o One of the two TIFF file header types was incorrect
860 o Segfault when exporting to GIF if Fig file specified "none" for GIF
861 transparency
862 o Duplicate JPEG information in fig2dev/Imakefile
863 o If output from fig2dev was standard output, bitmap export formats
864 failed because of bad argument to ghostscript
865 o -P option description for PostScript removed from fig2dev man pages
866 o Error parsing certain color specs for XPM files
867 o Tightly curved, wide splines were sometimes "spikey"
868 o Bounding box wasn't taking arrowhead width(s) into account
869 o free_text now uses free() instead of less standard cfree()
870 o Changed last references to sys_errlist to use strerror()
871 o Bug in referencing imported xbm files in tk driver fixed
872 o Temporary file not closed before deleting in read_gif() and read_ppm()
873 o Formatting "%lf" in printf calls should be "%f"
874 o Prepended $(DESTDIR) to $(XFIGLIBDIR) and $(FIG2DEV_DIR) directory
875 variables in Imakefile to be portable
876 o Cleaned up extraneous and erroneous rules in fig2dev/Imakefile
877 from Pierre Humblet ([email protected])
878 o Removed calls to external programs "cat" and "ps2pdf" to make more
879 portable to Cygwin environment
880 o fig2dev now uses gunzip instead of uncompress to uncompress .Z files
881 to be more portable for Cygwin environment
882 o Papersize sometimes truncated when reading Fig file (e.g. would get
883 "Lette" instead of "Letter")
884
885 ----------------------------
886 Patchlevel 3 (Jan 14, 2000)
887 [N.B. There was no transfig/fig2dev 3.2 patchlevel 2]
888
889 NEW FEATURES
890 o Adapted the transfig manual from LaTeX 2.09 to LaTeX 2e and uses
891 Times/Helvetica/Courier instead of Computer Modern fonts.
892 From Roland Rosenfeld ([email protected])
893 o If DBM file for RGB databse does not exist, read "rgb.txt" instead.
894 o If a file such as /usr/local/lib/fig2dev/A3.ps exists, insert it
895 when generating PostScript output to select paper tray, for example.
896 o Messages from bitmap output (GIF, JPEG, etc) are captured and printed
897 if there is any error during the export
898 o New PDF driver (uses ps2pdf from the ghostscript distribution)
899 o New CGM driver (Computer Graphics Metafile) from Philippe Bekaert
900 ([email protected])
901 o More page sizes (Japanese JIS B0-B10 and ISO A0-A9)
902 o Autocad Slide format called "sld" now instead of "acad"
903 (e.g. fig2dev -L sld ...)
904 o -L eps is required for Encapsulated PostScript now, instead of fig2dev
905 just using the -P (add showpage) option to distinguish EPS from PS
906 o The compile-time symbol EPSF in fig2dev/Imakefile has been changed:
907 comment out the DDLATEX2E_GRAPHICS = ... line if you don't want to use
908 the standard graphics package distributed w/ LaTeX2e
909 Uncomment the DDEPSFIG = ... line if you want to use the deprecated
910 epsfig macros distributed w/ LaTeX2e (DDLATEX2E_GRAPHICS must also be
911 defined)
912 o The default is now to compile for DVIPS
913 o Arc-boxes available for LaTeX now
914 from C. Scott Ananian <[email protected]>
915 o New import picture formats supported - TIFF and PPM
916
917 BUGS FIXED
918 o clipping and background filling incorrect for some Postscript/EPS
919 output
920 o pstex driver now uses EPS driver for figure part instead of PostScript
921 for proper bounding box and orientation (this is what caused rotation
922 of the figure relative to the LaTeX text part when the Fig file spec-
923 ified Landscape)
924 o TransFig now takes -L eps for Encapsulated PostScript language
925 o Imported EPS file bounding box wasn't read correctly
926 o readjpg.c and readjpg.o included in fig2dev/dev/Imakefile even without
927 JPEG support
928 o calloc() declaration wrong for some systems (fig2dev/read.c)
929 o Bug in importing EPS files - strange aspect ratios resulted
930 o Used "True" and "False" instead of "TRUE" and "FALSE" in several
931 driver files. Have converted all TRUE to True and FALSE to False
932 o Some applications don't set clipping path when they import EPSF file,
933 and not only the background of the figure but whole paper may be
934 painted with the -g (background) option.
935 o BitmapSuccess and BitmapFileInvalid were not defined in
936 fig2dev/dev/genxbm.c
937 o Digital's compiler doesn't like "{ }" as initializer (genps.c)
938 o Declarations of malloc() and calloc() removed from alloc.h, as they
939 are declared in <stdlib.h>
940 o Arrowheads didn't quite extend far enough
941 o Extra parenthesis in shell script when exporting to SLD, XBM, and XPM
942 o splines were interpolated slightly differently than in xfig
943 o Add description about "-j" option to help message (when I18N is enabled)
944 o if imported PCX image file couldn't be opened, fig2dev tried to close
945 the file, which is a bad thing
946 o %%EndProlog has been removed since it was not needed and there was
947 never a %%BeginProlog
948 o needed pi.h for gentk.c (tk driver)
949 o bzero macro defined globally now (wasn't defined in readpcx.c) for
950 those systems which don't have it (it is defined to use memset)
951 o didn't include "pi.h" in dev/gentk.c for machines that don't have M_PI
952 o Moved JPEGLIBDIR and JPEGINCDIR definition closer to the top in the
953 fig2dev/Imakefile
954 o Output to GIF, JPEG, etc. (bitmap formats) didn't work properly if the
955 destination was stdout
956 o "make install" changed because some systems' install program can only
957 take one file at a time
958 o Added a "newpath" command after the initial clip command for PostScript
959 output just in case an object is drawn without a preceding newpath
960 o M_2PI was redefined without first being #undef'd
961 o the "-" character in Fig files should really be a hyphen, not a dash as
962 it was encoded for PostScript output. This is fixed thanks to info
963 from Robert Maier.
964 o Splines didn't come out exactly as they did in xfig.
965 o In transfig, character used instead of int when checking for EOF on
966 file. From Geoff Keating ([email protected])
967 o %%EndDocument only written for imported EPS files (not XPM, etc)
968 From Dick Wesseling ([email protected])
969 o Added "if defined(FreeBSDArchitecture)" to include -lcompat library
970 o Changed fig2dev.h to always include <sys/param.h>
971 o Bounding box variables were uninitialized
972 o Cleaned up error reporting of line numbers in Fig file
973 o Text bounding calculations ignored the "include" directive for center-
974 and right-justified text, which is used to flag whether text should be
975 included in the bounding area. This would affect the LaTeX, PicTex,
976 PSTeX, TexTyl, and IBMGL drivers.
977 From Anton Wilder <[email protected]>
978 o Clipping for arrowheads so that thick lines wouldn't "protrude" through
979 the arrow tip modified so that it works properly with ghostscript 5.50.
980 o Allocation error in reading some pcx files
981
982 ----------------------------
983 Patchlevel 1 (July 1, 1998)
984
985 NEW FEATURES
986 o New driver for tk (tcl/tk) - Generates canvas objects and canvas.
987 from Mike Markowski ([email protected])
988 o -h option to print all options for all output languages
989 o Japanese text support for LaTeX output
990 from T. Sato ([email protected])
991
992 BUGS FIXED
993 o XPMLIB renamed to XPMLIBS in Imakefile because of conflict with
994 XFree86 variable name in xmkmf config files
995 o Fixed bug in JPEGINCDIR path when relative path is used (when
996 USEINSTALLEDJPEG is *not* used) - the dev directory is one level
997 deeper so "../" is prepended for that case
998 o The rest of the scaling problems for latex fixed :-)
999 from Hans Werner Strube ([email protected])
1000 o Two bugs fixed in eepic driver
1001 1) -l option didn't work because DPI was 0 when line width was
1002 defined
1003 2) -W option produced 0 line widths because of a bad fprintf
1004 o Dash length incorrect by factor of 80 for LaTeX output
1005 o I18N support added for LaTeX output
1006 o Incorrect amount of memory allocated for reading eps pictures
1007 o Bug in provided strstr() (only used if you've uncommented
1008 #define NOSTRSTR in the Imakefile)
1009 o Fixed M_PI incompatibility with RedHat 5.0
1010 o moved convert_names procedure from readxpm.c into genps.c since only
1011 genps.c needs it. Removed readxpm.c as a result.
1012 o added missing PCX import driver
1013 o metric scaling for latex part fixed
1014 From Martin Pahl <[email protected]>
1015 o Some Linuxes need -lgdbm instead of -ldbm (fig2dev/Imakefile)
1016 o transparent color for GIF was not passed (new option -t)
1017 o multiple co-incident points in splines caused problems on some
1018 machines (this patch was in the old spline model but failed to make
1019 it to the X-Spline model)
1020 o endpoints of splines were missing sometimes
1021 o new #ifdef for glibc which already has sys_errlist defined
1022 o conflict with definition M_PI (3.14159....) on RedHat systems fixed
1023 o "Ledger" paper size removed from list of paper sizes. It is really
1024 "Tabloid" size in landscape mode.
1025 o arrowheads were too far back from end of line
1026 o dash length for lines were too large in LaTeX output
1027 o fig2dev can now be used in a pipe (e.g. cat x.fig | fig2dev -L ps ...)
1028 was attempting to rewind file before
1029 o error in I18N defines in fig2dev/Imakefile
1030 o bug fixes and modernization of Metafont driver by Mats Bengtsson
1031 <[email protected]>
1032 o removed stricmp() function in dev/genepic.c because strcasecmp() is
1033 equivalent
1034 o newpath command given in PostScript output after imported EPS pic to
1035 prevent bounding box being drawn
1036
1037 ===============================================================================
1038 Version 3.2 (first release Aug 22, 1997)
1039 ===============================================================================
1040
1041 NEW FEATURES
1042 o flag in transfig/Imakefile to use "\usepackage" for LaTeX2e instead of
1043 "\documentstyle" for LaTeX209. See README file.
1044 o fig2dev now handles the bitmap formats (GIF, JPEG etc) instead of xfig,
1045 so there is more consistent output. Requires the (free) netpbm package.
1046 See the README file.
1047 o tiff (no compression) and AutoCad (acad) output languages added
1048 o image quality (0-100) is selectable for JPEG export (-q option)
1049 o PNG export driver added
1050
1051 BUGS FIXED
1052 o changed XPM variables to default X include/library in fig2dev/Imakefile
1053 o remove PageSize comment if EPS (no showpage)
1054 o bug in colormap for imported grayscale JPEG files
1055 o "rs gr" sequence after imported eps file changed to "restore grestore"
1056 in case imported eps file had defined either "rs" or "gr"
1057 o There was a bug in the EPIC driver when drawing backward arrows - in
1058 several places in genepic.c draw_arrow_head is called with unconverted
1059 coordinates, which leads to totally displaced arrows.
1060 from Heiko Schroeder ([email protected])
1061 o cleanup of dictionary wrapped around imported EPS files
1062 from Franz Koch ([email protected])
1063 o pic output didn't produce dashed or dotted arc
1064 o metric flag incorrectly parsed
1065 o strcasecmp and strncasecmp bugs (s2 != '\0' and s2 == '\0' should
1066 be *s2 ...)
1067 o error in JPEGINCDIR in fig2dev/Imakefile
1068 o rec_array wasn't being freed in gendev_objects (fig2dev.c)
1069 o thicklines not being set properly for LaTeX output
1070 o two-point splines looped infinitely on some machines
1071 fixed by Jeff Dairiki <[email protected]>
1072 o arrowheads weren't correct on tight arcs in eepic output
1073 fixed by Wolfgang Reissenberger <[email protected]>
1074 o TransFig now uses \usepackage instead of \documentstyle, which is old
1075 From Klaus Georg Barthelmann ([email protected])
1076 o fill pattern of rotated ellipses was rotated itself
1077 o Ledger/Tabloid sizes reversed (Tabloid is 11x17", Ledger is 17x11")
1078 o bounding box of text more accurate for text with/without descenders
1079 o added USEINLINE variable in Imakefile to use compiler inline functions
1080 o removed ANSI prototypes from spline routines in trans_spline.c
1081
1082 ------------------------------
1083 Version 3.2 Beta (Jan 9, 1997)
1084 ------------------------------
1085
1086 NEW FEATURES
1087
1088 o multi-page, paper size, magnification and transparent color stored in Fig
1089 file now. (transparent color is only used by xfig when exporting
1090 to GIF format)
1091 o comment that Redhat Linux users may have to change DBMLIB to -ldb in
1092 fig2dev/Imakefile
1093 o figures in landscape are only rotated when showpage command is NOT used
1094 (-P). This is because it doesn't need to be rotated for EPS,
1095 o previous spline models (interpolated splines and approximated splines) are
1096 replaced by one single model (x-splines) which allows the user to mix
1097 interpolated and approximated control points (see the "FORMAT3.2" file
1098 from the "xfig" package for details).
1099
1100 BUGS FIXED
1101
1102 o added second % to %%BeginDocument and %%EndDocument
1103 o garbage values for arrowhead produced when last two points in line were at
1104 same coordinate
1105 o bug in reading multi-line text object
1106 o showpage now follows restore as per standard
1107 from Christopher R. Wren ([email protected])
1108
1109 ===============================================================================
1110 Version 3.1
1111 ===============================================================================
1112 Patchlevel 2a (Jun 4, 1996)
1113
1114 NEW FEATURES
1115
1116 o only need to change XPM defines in fig2dev/Imakefile
1117 o if your system has the strerror() function (doesn't have sys_errlist) then
1118 comment out NEED_STRERROR with an XCOMM comment.
1119 o new option for PostScript output, "-e" to force figure to edge (flush-left).
1120 Useful when the figure was saved with Centering on.
1121 o point objects (POLYLINE with only one point) have thickness now and will be
1122 filled circles if cap style is rounded. PostScript output only.
1123 o -A option to scale arrowhead sizes for epic driver
1124 o can rotate all text (not just left justified) in LaTeX now using \rotatebox.
1125 The old restriction is not needed because the epsfig package is
1126 required to include ps_tex_t files anyway.
1127 o new line types - Dash-dot (_.) Dash-dot-dot (_..) and Dash-dot-dot-dot (_...)
1128 o new paper sizes: "Tabloid", "Ledger", "B", "C", "D", "E", "A0", "A1", "A2",
1129 "A3", "A4" and "B5". See man fig2dev (-z option) for sizes in
1130 inches and cm
1131
1132 BUGS FIXED
1133
1134 o double colon (::) needed for .man installation in Imakefiles
1135 o linewidth wasn't working correctly in epic/eepic driver
1136 from Andre Eickler ([email protected])
1137 o some versions of imake don't like null parameters in SpecialObjectRule in
1138 Imakefile - changed to "NullParameter"
1139 o the text alignment problem in LaTeX output has been fixed (genlatex.c)
1140 From Francky Leyn ([email protected])
1141 o if the endpoints of a POLYLINE are coincident, the line join parameter will
1142 be used to join them (xfig already showed this behavior)
1143 o redefined $(XPMINCDIR) to $(XPMINC) because some compilers have trouble with
1144 header search path with empty "-I"
1145 o incorrect directory specified for xpm.h in fig2dev/dev/genps.c and readxpm.c
1146 o changed "ln -s" commands in Imakefiles to "-ln -s" so make will continue if
1147 symlinks are already in place
1148 o back arrows incorrect for splines and lines in epic driver
1149 o figure was clipped to pagesize even in EPS mode
1150 o if paper size specified as "Ledger" in landscape mode fig2dev switches to
1151 "Tabloid" paper size and vice versa (Tabloid in portrait mode switches
1152 to Ledger)
1153 o segfault when importing jpeg picture with grayscale colormap fixed
1154 o colormap must be saved before jpeg_finish_decompress or
1155 jpeg_destroy_decompress are called in read_JPEG_file()
1156 o #include <jpeglib.h> changed to #include "jpeglib.h" to ensure corrrect path
1157 used to find header file
1158 o moved %Magnification information in PostScript output after %%BoundingBox
1159 (caused problems for some programs interpreting DSC PostScript)
1160 o incorrect spline line thickness when multiple splines are used
1161 o arrowheads caused DOMAIN error for asin on very small arcs
1162 o include ctype.h in fig2dev.h for isascii() and isxdigit() macros
1163 o removed redundant #ifdef NOSTRSTR from strstr.c because that file is only
1164 compiled if system has no strstr()
1165 o error when using first user-defined color (color 32)
1166 o fabs(), sin(), cos(), atan() and acos() redefined in genlatex.c, genpictex.c,
1167 genpstex.c and gentextyl.c
1168 o error message about being unable to open eps file was mis-formatted
1169 o multiple whitespace following "(atend)" in EPS file parsed correctly now
1170 from T. Sato ([email protected])
1171 o extraneous variable in fprintf in genps.c
1172 from T. Sato
1173 o extraneous % in fprintf in genepic.c (set_pattern)
1174 o multi-page option shifted all pages incorrectly
1175 o error in scanf format string for reading text from old (Fig 1.3) files
1176 from T. Sato
1177 o error in fprintf format string for virtual font in gentpic driver
1178 from T. Sato
1179 o erroneous "extern" declarations for cur_capstyle and cur_joinstyle in two
1180 dev/genps.c functions
1181 o bug in skip_comment() which prevented some machines from seeing the end of
1182 file, giving erroneous "Incorrect format" error
1183
1184 ---------------------------
1185 Patchlevel 2 (Aug 16, 1995)
1186
1187 New Features:
1188
1189 o JPEG (JFIF) pictures objects supported for PostScript output
1190 o %Magnification: comment added to PostScript output showing magnification
1191 o the points of arrow heads don't protrude past the endpoints of the object
1192
1193 Bugs Fixed:
1194
1195 o the radius of arc-box corners is limited to the half of the smaller of the
1196 two sides of the box to avoid PostScript errors
1197 o pstex driver incorrectly omitted postscript text in pstex output
1198 o set_linewidth was passed double instead of int from fdraw_arrow_head
1199 in genepic.c
1200 o length of dotted line dots too small for high resolution printers
1201 o recursion bug fixed where run-time would increase exponentially with nesting
1202 of compound objects
1203 o %%BeginDocument:/EndDocument now surrounds imported EPS files
1204 o open arrowheads on arcs were overwritten by arc lines
1205 o bug in pattern fill code which made patterns appear solid black when
1206 using dvips
1207 Thanks to Tomas Rokicki ([email protected]) for finding the fix
1208 o line thickness wasn't adjusted for new resolution in epic, eepic, pic, tpic
1209 and pictex drivers
1210 o dash length incorrect for Fig 3.x files in pic and pictex drivers
1211 o -s option to fix text pointsize wasn't being honored
1212 o documentation typo with regard to rigid text. Rigid text means that the font
1213 size doesn't change when text is inside a compound object and that
1214 object is scaled in xfig. Not used for fig2dev.
1215 o certain machines don't handle atan2(y,0.0) so arcs with endpoints having the
1216 same x value were incorrectly calculated
1217 o some machines don't calculate hypot(x,y) correctly so changed to sqrt(x*x+y*y)
1218 in arc_bound()
1219 o bug in calculating BoundingBox for PostScript in compound objects
1220 o cleared up confusion about -DNFSS and -DEPSF. Here is the final word:
1221
1222 Add -DNFSS to DEFINES list to use NFSS2 font selection for LaTeX texts
1223 Add -DEPSF to DEFINES list to use epsfig macros as distributed w/ LaTeX2e
1224
1225 Hint: Users of LaTeX2e will probably want to include both of these
1226 options; users of LaTeX 2.09 will probably want to include neither.
1227
1228 o new tints added (fill values 21-40) and arrowhead types for epic driver
1229 from Andre Eickler ([email protected])
1230 o pattern fill seg faulted for epic/eepic output (only PostScript has patterns)
1231 o sanity check for font number
1232 o font name "Modern" changed to more correct "Sans Serif" in documentation
1233 o MetaFont driver only sent output to stdout
1234 o version information (fig2dev -V) said "TransFig" instead of "fig2dev"
1235 o getopt.c not needed for Solaris - #if (defined(...)) added in Imakefile
1236 for this
1237 o removed duplicate #define of FALSE, TRUE and DEFAULT_FONT_SIZE in various
1238 drivers
1239
1240 ---------------------------
1241 Patchlevel 1 (Jan 24, 1995)
1242
1243 Bugs Fixed:
1244
1245 o eps files with binary data (!) now handled correctly
1246 o -f option to PostScript driver with unknown PostScript font name caused
1247 seg fault
1248 o increased resolution of unitlength specifier in latex/epic drivers - was
1249 rounding 0.00083333 to 0.0008.
1250 o dash length not set correctly for epic driver
1251 o area fill values incorrectly interpreted for some drivers other than
1252 PostScript - this also made fig2dev outpus spurious %s%s(%d%d)}
1253 for epic/eepic
1254 o linejoin set instead of linecap in postscript output
1255 o sets linecap to ROUND for ellipses and closed splines with dotted lines
1256 o defines showpage as null for included EPS files instead of removing the
1257 word "showpage" from them
1258 o definition for XCOMM in Imakefiles for those running R4
1259 o bug in freeing xpm image structure incompatible pointer type
1260 o bug in fig2dev/Imakefile variable for including -ldbm explicitly
1261 o removed -lnsl option from fig2dev/dev/Imakefile - imake files should
1262 automatically add this to the Makefile for Solaris (SVR4) systems
1263 o note added to README that you must do "make" before "make install"
1264 o bug in reading text for linux os - text size was set to 0
1265 o bcopy changed to memcpy call in dev/readpics.c
1266 o SVR4 condition added to transfig/transfig.h for including string.h
1267 o variable in fig2dev/Imakefile and fig2dev/dev/Imakefile for include
1268 directory for xpm files if your xpm headers are not in the default X11
1269 include directory
1270
1271 --------------------------
1272 Patchlevel 0 (Jan 9, 1995)
1273
1274 o NOTE: An error in xfig version 3.0.0 incorrectly positioned objects on the
1275 canvas when reading older fig files. New objects entered with 3.0 are
1276 correctly positioned.
1277 I apologize for the inconvenience.
1278 ***** This is the only reason why the file protocol number has changed.
1279
1280 Bugs Fixed:
1281
1282 o error when figure was larger or partially off the page and user did not
1283 select multipage option (-M)
1284 o newline() declared twice (inconsistently) in dev/gentpic.c
1285 o errors in read.c for linux machines - caused font size 0
1286 o Linux machines need LOCAL_LDFLAGS = -ldbm in fig2dev/Imakefile
1287 o sys/types.h needed in dev/readpics.c for BSD machines
1288
1289 ===============================================================================
1290 Version 3.0
1291 ===============================================================================
1292 Transfig version 3.0.0 (Dec 22, 1994)
1293
1294 New Features:
1295
1296 o MetaFont driver added (from fig2mf)
1297 from Anthony Starks ([email protected])
1298 o "-n name" option to specify filename for PostScript Title (e.g. when using
1299 stdin)
1300 o -x <offset> and -y <offset> options for PostScript output to shift figure on
1301 page.
1302 o fig2dev/dev/Imakefile settings to:
1303 1. Use LaTeX2e commands for setting fonts. As LaTeX2e will become the
1304 official release by spring this year (we redefined the start of
1305 spring to be the date the LaTeX is released). This is a subtle
1306 problem in the outcome of transfig, but some old font changing
1307 commands behave differnet now.
1308 2. To use the \epsfig-package distributed with LaTeX2e instead
1309 of \special{psfile... for included PS-figures.
1310 They use two new defines in the dev/Imakefile: -DNFSS for 1., -DEPSF for 2.
1311 From Hendrik G. Seliger ([email protected])
1312 o arrow heads are pointed now for PostScript (they were blunt before)
1313 o EPS Objects have been generalized to Picture Objects. Currently EPS, XBM
1314 XPM (X11 color pixmap) and GIF formats are recognized.
1315 Compressed (.Z) and gzipped (.z or .gz) files are also handled.
1316 o new command-line option '-z' for PostScript output used to select a paper
1317 size from the list of A4, B5, Letter, Legal.
1318 from Jon Roma ([email protected])
1319 o change to the pstex driver so that when it sees text with a LaTeX font it
1320 handles it using the LaTeX text object routine, but not treating it
1321 as "special" text. This allows the pstex driver to take the "hint"
1322 the since the user is using LaTeX font specifiers, those should be
1323 used. The only people who could be adversely affected by the change
1324 would be those using LaTeX font names as convenient synonyms for
1325 PS font names who would now get LaTeX fonts instead. Probably not
1326 a problem.
1327 from Micah Beck ([email protected])
1328 o fig2ps2tex.sh for systems which don't have csh or dc. Uses bc and awk.
1329 from Dave Raymond ([email protected])
1330
1331
1332 o changes to the file format (protocol). See *xfig* Doc/FORMAT3.0 for details.
1333 Transfig will still read older Fig file formats.
1334 Here are the features involving change to the protocol:
1335 o portrait/landscape, justification (center or flush left) and metric/inches
1336 indicators saved with figure file so is not necessary to supply the
1337 command-line args to specify them. However they will override the file
1338 specification if given.
1339 o separate border and fill colors.
1340 o resolution is increased from 80 ppi to 1200 ppi. This decreases jaggies.
1341 A side effect is that fig2dev can now read Fig files of any resolution.
1342 o there are now 32 colors - new ones are: gold, three shades each of blue,
1343 green, cyan, red, magenta, brown and pink.
1344 o in addition, there are now user-definable colors which are stored in the
1345 figure file as pseudo-objects of type 0 which define the rgb values
1346 in hexadecimal. The color numbers range from 32 to 543 for a maximum
1347 of 512 user-defined colors.
1348 o more fill options - colors transition from black to full saturation
1349 (shades) and on to full white (tints, i.e. pastels).
1350 Or you can use one of 16 fill patterns - diagonal lines, bricks,
1351 shingles, crosshatch etc.
1352 o three line-join styles: miter (current style), round and bevel (see
1353 PostScript or Xlib reference for description)
1354 o three line-cap styles: butt (current style), round and projecting (see
1355 PostScript or Xlib reference for description)
1356
1357 Bugs fixed:
1358
1359 o circles/ellipses paths weren't being closed in postscript output - gap closed
1360 o "%%Page: 1 1" added for single-page output for Document Structuring Compliancy
1361 (previously, Page: comment only appeared in multi-page figures)
1362 o coord_system was declared extern in fig2dev/fig2dev.h. This was incorrect.
1363 o even/odd rule fill now used for filled objects as per xfig (PostScript)
1364 o typo in fig2dev/dev/Imakefile said include -DA4d instead of -DA4 for A4 paper
1365 o all orientations of rotated/flipped EPS objects correctly done now
1366 o man pages for transfig claims to be able to read postscript files - this was
1367 never finished so it has been removed from the man pages.
1368 o dotted lines with very small length caused SIGFPE
1369 o typo in error message about unknown option
1370 o added check for #if defined(SVR4) in addition to defined(SYSV)
1371 o misplaced ';' in fig2dev.c gendev_null() proc
1372 o added static declarations in genlatex.c genpictex.c and gentextyl.c
1373 o better bounding box calculation
1374 from Uwe Bonnes ([email protected])
1375 o Tpic TeX font position 5 was "sl" (slanted) which doesn't exist
1376 from Edward Wang ([email protected])
1377
1378 ===============================================================================
1379 Version 2.1
1380 ===============================================================================
1381
1382 Transfig version 2.1.8 (Oct 1, 1993)
1383
1384 New Features:
1385
1386 Bugs fixed:
1387
1388 o thick line threshold increased from 1 to 2 for latex lines
1389 o save/restore wraps EPS objects now
1390 o specifing nonexistant font with -f caused coredump
1391 from Gordon W. Ross ([email protected])
1392 o newpath command given before EPS object for PostScript output
1393 o moved definition of SetFigFont to better place
1394 from Bernd Raichle ([email protected])
1395 o #included sys/types for BSD4_3 systems in genps.c
1396 o bug in eepic output - SetFigFont was being defined inside a \put
1397 from Vivek Khera ([email protected])
1398 o BoundingBox for EPS objects can be floating values
1399 o shortened file name (fig2dev/dev/)def_setfigfont.c to setfigfont.c
1400 o distribution version of fig2dev/dev/Makefile had (def_)setfigfont.c
1401 instead of (def_)setfigfont.o in LIBOBJS definition
1402 o SUBDIR fig2dev/dev was missing from top-level Imakefile caused problems
1403 where make would say something like "No rule to make target
1404 dev/libtransfig.a"
1405
1406 ----------------------
1407 Transfig version 2.1.7
1408
1409 o no longer writes over input file if there is an error in the command line
1410 o added "%%Orientation: Landscape" comment for PostScript output in landscape
1411 orientation
1412 o moved definition of SetFigFont from transfig into genpstex.c so that there
1413 is no need to run transfig for pstex output
1414 o script pic2tpic was generating \ss instead of \sf for \fH
1415 from Mark Roth ([email protected])
1416 o changed header for Encapsulated postscript files from "%!PS-Adobe-2.0 EPSF"
1417 to "%!PS-Adobe-2.0 EPSF-2.0" which allows FrameMaker and ghostview to
1418 read them properly.
1419 from Vivek Khera ([email protected])
1420 o check for #ifdef SYSV to include string.h instead of strings.h in
1421 fig2dev/dev/genibmgl.c
1422 o changed EXTRA_LIBRARIES to SYS_LIBRARIES in fig2dev/Imakefile so wouldn't
1423 clobber system-dependent flags in EXTRA_LIBRARIES
1424 o fprintf and 'else' missing from genepic which caused incorrect information
1425 to be generated when drawing arcs using epic output
1426 o removed dependencies on the X libraries (Imakefiles and Makefiles)
1427 o SGI machines had trouble with hypot() which caused arrow heads to mess up
1428 from Malcolm Davis ([email protected])
1429 o Flipped EPS objects were incorrectly flipped on output
1430 from Brian Boyter ([email protected])
1431 o POLYLINES were being drawn in sections (10 points per section) which
1432 resulted in incorrect dashed line lengths and only one section
1433 filled if area fill was on
1434 from Peter Egelberg ([email protected])
1435 o added Sequent machines and Suns with SunOs < 4.1 to list of machines that
1436 don't have strstr()
1437 from Scott Erikson ([email protected])
1438 o removed PATCHLEVEL from patchlevel.h file - version number is complete with
1439 three parts (e.g. 2.1.6)
1440 o removed "extern coord_system" from fig2dev.h (wasn't used by fig2dev)
1441 o SPECIAL_CHAR split into three strings for systems which can't handle one
1442 o -P flag dissappeared from eepic output language - reinstated
1443
1444 -------------
1445 Version 2.1.6
1446
1447 o Courier-BoldItalic changed to Courier-BoldOblique for PostScript fonts
1448 o "if" statement replaces copysign() call since some machines don't have it
1449 o some backslashes ('\') corrected in printf statements in transfig/mkfile.c and
1450 fig2dev/iso2tex.c
1451 o changed header for postscript files from "%!" to "%!PS-Adobe-2.0" when using
1452 -P (showpage) option and "%!PS-Adobe-2.0 EPSF" otherwise (Encapsulated)
1453 o corrupt transfig/Imakefile and typo (SCRS instead of SRCS)
1454 o some variables (cur_thickness and coord_system) were multiply defined in
1455 various drivers in fig2dev/dev - made those static