xfig(1)

๐Ÿ’– NAME ๐Ÿ’–

xfig โ€” Facility for Interactive Generation of figures under X11, Version 3.2.9a.

Yes bestie, this is the xfig(1) manual page (General Commands Manual), and it's long, so buckle up. ๐Ÿ’…


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

xfig [options] [file]

โœจ DESCRIPTION โœจ

Okay so Xfig is a menu-driven tool, which is the fancy way of saying: you draw and manipulate objects interactively under the X Window System, and the menus do the heavy lifting. And if you hand it a file? That's the name of a file to be edited. Easy. ๐ŸŽ€

The bulk of the documentation for xfig lives in an HTML-based reference guide. So either hit up the Help menu in xfig, or point your browser at /usr/share/doc/xfig/html/index.html. There are both English and Japanese versions, because we're multilingual and iconic. ๐ŸŒธ

Two-button mouse moment? If you've got a two-button mouse instead of a three-button one, hold the <Meta> key and the right button at the same time โ€” that does exactly what the middle button would do. No mouse left behind. ๐Ÿซถ

Xfig is available from https://sourceforge.net/projects/mcj/.

The Fig2dev package is what gets called when you print or export output from xfig. The fig2dev program is automatically called by xfig as a back-end processor to produce various types of output:

  • LaTeX
  • Metafont
  • PDF
  • PostScript or Encapsulated PostScript
  • CGM and EMF (mostly used under Windows)
  • tk (tcl/tk tool command language/tool kit package)
  • SVG
  • GIF
  • JPEG
  • PCX
  • PNG
  • PPM
  • TIFF
  • XBM
  • XPM
  • Gerber
  • AutoCAD Slide
  • IBM-GL (HP/GL)
  • Pic and PiCTeX

And for use with TeX/LaTeX: box, epic, eepic, eepicemu, pict2e, pstricks, tikz.

See man fig2dev for all options.

The Fig2dev package is available from https://sourceforge.net/projects/mcj/.


๐Ÿ‘‘ OPTIONS ๐Ÿ‘‘

Time for the main character section, fr fr. Every single flag, no skips. ๐ŸŒˆ

  • -help โ€” prints all the command-line options for xfig and then quits. Like, the whole menu. ๐Ÿ“‹
  • -a[llownegcoords] โ€” lets you pan into the negative region of the canvas. This is the default, so you're already living that life. โœจ
  • -au[torefresh] โ€” makes xfig peek at the timestamp on the .fig file and automatically load and display it every single time it changes. Obsessed with staying updated. ๐Ÿ‘€
  • -bal[loon_delay] msec โ€” makes popup information balloons wait msec milliseconds before showing up. The default is 500 milliseconds.
  • -butt[on] font โ€” sets the font used for most buttons to font (default = 6x13).
  • -but_[per_row] number โ€” says how many buttons wide the mode panel should be. Super useful paired with the -pheight parameter when you're trying to shrink the canvas height for a small screen. ๐Ÿ“ฑ
  • -cbg color โ€” uses color as the background color for the canvas. If you want to set the background of everything in xfig (menus, etc.), use the general -bg option instead.
  • -center โ€” sets the print option to print the figure centered on the page. This is the default. ๐ŸŽฏ
  • -centim[ers] โ€” makes centimeters the unit of choice. See also -metric.
  • -cfg color โ€” uses color as the default color for objects. If you want to set the foreground of everything in xfig (menus, etc.), use the general -fg option instead.
  • -correct_font_size โ€” okay so normally, fig2dev uses 1/80 inch for font size increments (for historical reasons, don't ask ๐Ÿ˜ญ), instead of the more proper "points" (1/72 inch) that xfig uses. This option makes xfig call fig2dev with the -F option so it uses points (1/72 inch) instead.
  • -deb[ug] โ€” turns on debugging mode. Prints various debugging messages like font names etc.
  • -dep[th] โ€” choose the depth of visual you want. Your server must support the desired visual and depth you picked. Use xdpyinfo to see what visuals and depths are supported. See also the -visual option.
  • -donta[llownegcoords] โ€” does not allow panning into the negative region of the canvas. The default is to allow panning in the negative region.
  • -dontshowb[alloons] โ€” stops xfig from popping up the information balloons. See also -showballoons.
  • -dontshowl[engths] โ€” don't show lengths of lines as they're being drawn. This is the default.
  • -dontshowz[erolines] โ€” don't show axis zero lines on the canvas. The default is to show them.
  • -dontsw[itchcmap] โ€” prevents xfig from switching to a private colormap if there aren't enough colors available in the default colormap. See also -max_image_colors.
  • -exportL[anguage] language โ€” specifies the default language used when exporting a fig file. The choices are:

Vector formats:

  1. ps โ€” PostScript
  2. eps โ€” Encapsulated PostScript
  3. pdf โ€” PDF (Portable Document Format)
  4. box โ€” LaTeX box (figure boundary)
  5. latex โ€” LaTeX picture
  6. pict2e โ€” LaTeX picture + pict2e macros
  7. tikz โ€” LaTeX picture + tikz macros
  8. epic โ€” LaTeX picture + epic macros
  9. eepic โ€” LaTeX picture + eepic macros
  10. eepicemu โ€” LaTeX picture + eepicemu macros
  11. pstex โ€” Combined PS/LaTeX (both PS and LaTeX parts)
  12. pdftex โ€” Combined PDF/LaTeX (both PDF and LaTeX parts)
  13. pspdftex โ€” Combined PS/PDF/LaTeX (three parts)
  14. pictex โ€” PiCTeX macros
  15. cgm โ€” Computer Graphics Meta file
  16. emf โ€” Enhanced Meta file
  17. dxf โ€” Drawing Interchange format
  18. gbx โ€” Gerber (RS-247-X)
  19. ibmgl โ€” HPGL/2 or IBMGL
  20. textyl โ€” Textyl special commands
  21. tpic โ€” TPIC
  22. pic โ€” PIC
  23. mf โ€” MF (MetaFont)
  24. mp โ€” MP (MetaPost)
  25. tk โ€” Tk (Tcl/Tk toolkit)
  26. ptk โ€” Perl/Tk
  27. shape โ€” LaTeX shape paragraph definition
  28. svg โ€” SVG (Scalable Vector Graphics)

Bitmap formats:

  1. gif โ€” GIF
  2. jpeg โ€” JPEG (JFIF)
  3. pcx โ€” PCX
  4. png โ€” PNG
  5. ppm โ€” PPM (portable pixmap package)
  6. sld โ€” (AutoCad slide)
  7. tiff โ€” TIFF
  8. xbm โ€” X11 Bitmap
  9. xpm โ€” X11 Pixmap
  • -export_m[argin] width โ€” sets the size of the border margin around the figure when exporting to bitmap, PostScript, Encapsulated PostScript, or HTML MAP formats. This is in units of points (1/72th inch). The default is 0.
  • -fli[pvisualhints] โ€” flips the left/right mouse indicator messages for mice whose buttons have been switched. The default is to NOT flip the messages.
  • -flu[shleft] โ€” sets the print option to print the figure flush left. The default is to center the figure on the page.
  • -free[hand_resolution] resolution โ€” sets the resolution of the freehand drawing mode to resolution pixels. Basically: how many pixels the mouse has to move before xfig adds another point to the object you're drawing. ๐Ÿ–Š๏ธ
  • -geom[etry] [WxH][+X+Y] โ€” you can use the -geometry option or resource to size and/or position the xfig window, OR you can use -pwidth and/or -pheight to specify the canvas size in inches or centimeters. Heads up: if you use -geom to make the xfig window smaller than the default, you may have to use the -but_per_row option to tell xfig to put 3 or 4 buttons per row on the left mode panel. ๐ŸชŸ
  • -gh[ostscript] ghostscript executable โ€” specify the name or path to the ghostscript executable. The default is gs. This version of xfig links into the ghostscript library, so the ghostscript executable is not needed โ€” it's only called as a fallback-solution. ๐Ÿ’€
  • -grid_c[olor] color โ€” draws the grid on the canvas in this color (default: red).
  • -grid_u[nit] unit โ€” only used when in inches mode, to choose between showing fractions or decimal inches in the rulers and grid. Any of the following may be used to force decimal inches: "ten", "tenth", "10, "1/10". If any other value is used for this option, the rulers will show 1/16 inch divisions.
  • -hidd[entext] โ€” starts xfig with the hidden text mode for text objects. The Hidden attribute is used for figures that'll be used with LaTeX, and it applies only to the display of the document in xfig. It means the text itself isn't shown onscreen โ€” only the string <text>. The whole point is to keep long sequences of LaTeX formatting commands from making the screen messy and hard to read. The default for the Hidden flag is off. ๐Ÿ™ˆ
  • -dontshowd[epthmanager] โ€” hides the depth manager panel. The default is to show the panel.
  • -icon_[view] โ€” shows the library objects as icons. This is the default. The other mode is -list_view. ๐ŸŽ€
  • -iconG[eometry] +X+Y โ€” specifies the position for the icon.
  • -ima[ge_editor] editor โ€” specify the bitmap editor to use when the "Edit Image" button is pressed in the Picture Object panel.
  • -inc[hes] (or -imp[erial]) โ€” makes inches the unit of choice. This is the default.
  • -ins[tallowncmap] โ€” install own colormap. Normally, xfig uses the current colormap.
  • -internalBW width โ€” uses lines of width width between all buttons and panels (default 1).
  • -jpeg[_quality] quality โ€” sets the quality factor for exporting to the jpeg format. The default is 75.
  • -k[eyFile] compose-key-file โ€” uses compose-key-file instead of CompKeyDB for the compose (meta) key database. Details, bestie, because they matter:
    • If there are no /s in the name, the file must reside in the xfig library directory, $XFIGLIBDIR, usually /usr/local/lib/X11/xfig.
    • If there are any /s in the name, it is taken as is (not relative to $XFIGLIBDIR).
    • If there is a leading ~/ in the string, then the ~ is expanded to the user's home directory. ๐Ÿ 
  • -lan[dscape] โ€” makes xfig come up in landscape mode (10.5" x 8"). This is the default; however, since the orientation is stored with Fig files, when you load a Fig file the orientation will change as required. This is only true for files of version 3.0 or higher. See also -portrait.
  • -lat[exfonts] โ€” starts xfig with LaTeX font selection. Normally, the PostScript fonts are available as the default. This flag selects the LaTeX fonts to start. โœ๏ธ
  • -le[ft] โ€” changes the position of the side panel window to the left of the canvas window. This is the default.
  • -library_d[ir] [directory | file] โ€” okay so this tells xfig where the Fig object libraries live, either a directory or a file containing directory names. And bestie, there may be sub-directories there and sub-sub-directories, etc. ๐Ÿ’…
  • -library_i[con_size] size โ€” sets how big the icons shown for library objects are. The default is 60 pixels, with the minimum being 40 and the maximum being 120. โœจ
  • -lis[t_view] โ€” show the library objects as a list of names. The default mode is -icon_view. ๐ŸŽ€
  • -mag[nification] mag โ€” set export and print magnification in %. ๐Ÿ”ฅ
  • -max[_image_colors] numcols โ€” limit the number of colors used for imported images to numcols (default 64). ๐Ÿ’–
  • -me[tric] โ€” make centimeters the unit of choice. The option -centimeters may also be used. Fig files saved in metric mode are, due to rounding issues, scaled down by about 5% when saved, and scaled up when read in. Using -inches or -imperial avoids the scaling. ๐Ÿซถ

After xfig is started you may change the units from metric to imperial or vice versa from a popup menu available by pressing mouse button 3 in the units box where the two rulers meet.

  • -mo[nochrome] โ€” use black and white only. ๐Ÿ–ค๐Ÿค
  • -mu[ltiple] โ€” sets multiple page mode for print or export. See also -single. ๐Ÿ“„๐Ÿ“„
  • -nointernational โ€” switch off international support. This can be done if text objects only contain ASCII characters. (Characters beyond ASCII are interpreted as Latin 1). If there are error messages when starting xfig regarding "missing charsets in string to fontset conversion", setting this option avoids the error. ๐Ÿ˜ญ
  • -noo[verlap] โ€” when exporting in multiple page mode, causes no overlap from page to page. This is the default. See also -overlap. ๐Ÿšซ
  • -nor[mal] font โ€” cause the font used for the message window to be font. This font is also used on the canvas when the global settings "Show line lengths" or "Show vertex numbers" are true (default = 6x13). ๐Ÿ”ค
  • -nosp[lash] โ€” don't show the startup splash screen. The default is to show it (-splash). ๐Ÿ™ˆ
  • -not[rack] โ€” turn off cursor (mouse) tracking arrows. ๐Ÿ–ฑ๏ธ๐Ÿšซ
  • -nowrite_bak โ€” when saving a drawing into an existing .fig file xfig will first rename that file by appending ".bak" to the name. This option disables this feature. ๐Ÿ’พ
  • -ov[erlap] โ€” when exporting in multiple page mode, causes overlap from page to page of about 10%. See also -nooverlap. ๐Ÿ“‘
  • -pag[eborder] color โ€” draw the page border on the canvas in this color (default light blue). The page border is turned on by the -showpageborder option (resource Fig.showpageborder), and shows the edges of the current export paper size. ๐ŸŽจ
  • -pap[er_size] size โ€” set the initial paper size for Export and Print. Choices are:
    • letter โ€” Letter, 8.5in x 11in
    • legal โ€” Legal, 8.5in x 14in
    • tabloid โ€” Tabloid, 17in x 11in
    • a โ€” ANSI A, 8.5in x 11in
    • b โ€” ANSI B, 11in x 17in
    • c โ€” ANSI C, 17in x 22in
    • d โ€” ANSI D, 22in x 34in
    • e โ€” ANSI E, 34in x 44in
    • a9 โ€” ISO A9, 37mm x 52mm
    • a8 โ€” ISO A8, 52mm x 74mm
    • a7 โ€” ISO A7, 74mm x 105mm
    • a6 โ€” ISO A6, 105mm x 148mm
    • a5 โ€” ISO A5, 148mm x 210mm
    • a4 โ€” ISO A4, 210mm x 297mm
    • a3 โ€” ISO A3, 297mm x 420mm
    • a2 โ€” ISO A2, 420mm x 594mm
    • a1 โ€” ISO A1, 594mm x 840mm
    • a0 โ€” ISO A0, 840mm x 1189mm
    • b10 โ€” JIS B10, 32mm x 45mm
    • b9 โ€” JIS B9, 45mm x 64mm
    • b8 โ€” JIS B8, 64mm x 91mm
    • b7 โ€” JIS B7, 91mm x 128mm
    • b6 โ€” JIS B6, 128mm x 182mm
    • b5 โ€” JIS B5, 182mm x 257mm
    • b4 โ€” JIS B4, 257mm x 364mm
    • b3 โ€” JIS B3, 364mm x 515mm
    • b2 โ€” JIS B2, 515mm x 728mm
    • b1 โ€” JIS B1, 728mm x 1030mm
    • b0 โ€” JIS B0, 1030mm x 1456mm

Note that this doesn't affect the size of the drawing canvas. Use the -pheight and -pwidth options for that.

  • -ph[eight] height โ€” make the xfig canvas height height high (where height is either cm or in, depending on the -metric setting). ๐Ÿ“
  • -po[rtrait] โ€” make xfig come up in portrait mode (8.5" x 9"). See note about landscape mode. ๐Ÿ–ผ๏ธ
  • -pw[idth] width โ€” make the xfig canvas width width wide (where width is either cm or in, depending on the -metric setting). ๐Ÿ“
  • -righ[t] โ€” change the position of the side panel window to the right of the canvas window (default: left). โžก๏ธ
  • -rigi[d] โ€” start xfig with the rigid text mode for text objects. The Rigid attribute forces text to remain the same size even if inside a compound object that is scaled up or down. The default is off. ๐Ÿ”’
  • -ru[lerthick] โ€” set the height(width) of the top(side) rulers in pixels. The default (and minimum) is 24. ๐Ÿ“
  • -scale_factor scale โ€” scale every figure read in by this value. This is useful in conjunction with the -update option to do batch scaling of figures. ๐Ÿ”
  • -showa[llbuttons] โ€” show all the xfig indicator buttons instead of only those relevant to the current drawing mode. Normally, the buttons line width, area-fill, grid mode, text size, etc. are only visible when they are relevant to the current drawing mode. The -showallbuttons option makes all of the indicator buttons visible at all times. This takes up more screen real estate, but allows the user to see all settable parameters. ๐Ÿ‘€
  • -showb[alloons] โ€” forces xfig to pop up the information balloons when the mouse passws over a button. This is the default. See also -dontshowballoons. ๐ŸŽˆ
  • -showd[epthmanager] โ€” show the depth manager panel. This panel lets one show or hide objects at various depths. This is the default. ๐Ÿ“š
  • -showl[engths] โ€” makes xfig show the lengths of lines being drawn, in red text near the line itself. Also, when points are moved or added. In addition, imagine a triangle formed with the line segment as the hypotenuse, and a vertical and horizontal line forming the other two sides. These lines and their lengths are also drawn in red as the point is moved or added. This mode is ignored when drawing in freehand mode. This flag may be toggled by pressing <Meta>i (default). ๐Ÿ”บ
  • -shown[ums] โ€” with this option, xfig will draw all objects with a red number next to each vertex. This is generally only useful for debugging. ๐Ÿ”ข
  • -showp[ageborder] โ€” makes xfig show the border of the current paper size in the color specified by the -pageborder option (default: light blue). ๐Ÿ–ผ๏ธ
  • -showz[erolines] โ€” show axis zero lines on the canvas. This is the default. ๐Ÿ“‰
  • -si[ngle] โ€” sets single page mode for print or export. This is the default. See also -multiple. ๐Ÿ“„
  • -sm[ooth_factor] factor โ€” enable smoothing when exporting to the bitmap formats (e.g. GIF, PNG, etc.). The allowed values are 0 (no smoothing), 2 or 4 (most smoothing). This parameter is passed to ghostscript in the -dTextAlphaBits -dGraphicsAlphaBits options to smooth the figure. โœจ
  • -spec[ialtext] โ€” start xfig with the TeX text mode for text objects. This means that characters that have a special meaning to TeX/LaTeX, e.g., '$' or '\', are not quoted but left untouched in the text string. This is most useful for writing LaTeX equations. If this flag is not set, then the backslash character '\' is changed to the \backslash command, a brace '{' is turned into a brace command \{, etc. ๐Ÿงฎ
  • -spel[lcheckcommand] command โ€” use command for the external spell checking program when using the spell check/search/replace popup. The string command should include the string "%s" which is replaced by a temporary filename. Default is "spell %s". ๐Ÿ“
  • -spinner_d[elay] msec โ€” the delay (in milliseconds) before the spinner will automatically count up or down when the button is pressed. Spinners are the (numeric) text widgets with an up- and down-arrow, which when clicked, cause the value to be incremented/decremented. The default is 500 milliseconds. โณ
  • -spinner_r[rate] msec โ€” the rate (in milliseconds) at which the spinner will count when the up- or down-arrow is pressed. โฑ๏ธ
  • -startfi[llstyle] stylenumber โ€” set the starting fill style for area fill (-1 to 21). ๐ŸŽจ
  • -startfo[ntsize] pointsize โ€” set the default font size for text objects (default = 12pt). ๐Ÿ”ค
  • -startg[ridmode] modenumber โ€” set the starting grid mode (0 to 3). Mode 0 is no grid. In imperial (inches) mode, grid mode 1 is 1/4 inch, mode 2 is 1/2 inch and mode 3 is 1 inch. In metric mode, grid mode 1 is 2mm, mode 2 is 5mm and mode 3 is 1cm. ๐Ÿ“
  • -startla[texFont] font โ€” set the starting font name for LaTeX fonts. ๐Ÿงฎ
  • -startli[newidth] width โ€” set the starting line width. โœ๏ธ
  • -startpo[snmode] modenumber โ€” set the starting point positioning mode (0 to 4). In imperial (inches) mode, positioning mode 0 is "any", mode 1 is 1/16 inch, mode 2 is 1/4 inch, mode 3 is 1/2 inch and mode 4 is 1 inch. In metric mode, mode 0 is "any", mode 1 is 1mm, mode 2 is 5mm, mode 3 is 10mm and mode 4 is 20mm. ๐Ÿ“
  • -startp[sFont] font โ€” set the starting font name for PostScript fonts. ๐Ÿ–จ๏ธ
  • -startt[extstep] stepsize โ€” set the starting text step. ๐Ÿ“
  • -ta[blet] โ€” specifies that xfig should use the input tablet instead of the mouse for drawing. You must have the XInputExtension in your X server and an input tablet for this to work. ๐Ÿ–Š๏ธ
  • -track โ€” turn on cursor (mouse) tracking arrows (default). ๐Ÿ–ฑ๏ธ
  • -tran[sparent_color] color_number โ€” make the transparent color for GIF export color_number. This number is the color number according to the xfig color panel, starting at 0 (black) and ending at 31 (gold), or may be a user-defined color number, which is 32 or higher. ๐ŸŒˆ
  • -update file [file ...] โ€” runs xfig in an update mode, bestie. It reads each Fig file you dropped on the command line and writes it right back out to the original file, in whatever the current file format is for the version of xfig you're running. Your original Fig file doesn't get yeeted though โ€” it's preserved with a .bak suffix tacked onto the name. ๐Ÿซถ In this mode xfig exits as soon as it's done, and no window opens at all. It's giving "silent makeover", periodt.
  • -users[cale] scale โ€” sets the multiplier for displayed line lengths and all that. This factor gets multiplied by the actual length, radius, or diameter of the object you're currently drawing on the canvas. It's so useful for scale drawings, like when 1 inch = 1 foot (that's userscale = 12.0) or 1cm = 1m (that's userscale = 100.0). ๐Ÿ“โœจ
  • -useru[nit] units โ€” this units string gets printed alongside the length info while you're drawing objects. Example time: if userscale = 1.0 and userunit = ft, then a line that's 3 inches long on the canvas would show up as length = 3 ft while you're drawing it. ๐ŸŽ€

Once xfig is up and running, you can change userscale and userunit from a popup menu โ€” just press mouse button 3 in the units box, the one where the two rulers meet. iykyk.

  • -visual visualname โ€” uses visualname as the visual for xfig. The names are TrueColor (case is not important, bestie), StaticColor, DirectColor, StaticGray, GrayScale and PseudoColor. Unless you specify this, xfig just uses the default visual. Your server must support the visual you want though โ€” no cap. Use xdpyinfo to see what visuals and depths are supported, and go peek at the -depth option too. ๐Ÿ”
  • -write_bak โ€” when saving a drawing into an existing .fig file xfig will first rename that file by appending
okay so the manpage literally just. stops there ๐Ÿ’€ I'm not making up the rest, that's genuinely where the sentence ends. Iconic of it, honestly.
  • -zoom zoomscale โ€” sets the starting zoom scale. That's it, that's the whole vibe. ๐Ÿ”Ž

๐Ÿ’ซ X RESOURCES and DEFAULTS ๐Ÿ’ซ

The overall widget name(Class) is xfig(Fig). These resources correspond to the command line arguments โ€” like, they're the same thing but in resource form, fr fr:

  • allownegcoords โ€” boolean, default true; command-line equivalent: -allownegcoords (true), -dontallownegcoords (false)
  • autorefresh โ€” boolean, default false; command-line equivalent: -autorefresh
  • axislines โ€” string, default pink; command-line equivalent: -axislines
  • balloon_delay โ€” integer, default 500 (ms); command-line equivalent: -balloon_delay
  • but_per_row โ€” integer, default 2; command-line equivalent: -but_per_row
  • buttonFont โ€” string, default 6x13; command-line equivalent: -button
  • canvasbackground โ€” string, default white; command-line equivalent: -cbg
  • canvasforeground โ€” string, default black; command-line equivalent: -cfg
  • correctfontsize โ€” boolean, default false; command-line equivalent: -correctfontsize
  • debug โ€” boolean, default false; command-line equivalent: -debug
  • depth โ€” integer, default *; command-line equivalent: -depth
  • dontswitchcmap โ€” boolean, default false; command-line equivalent: -dontswitchcmap
  • exportLanguage โ€” string, default eps; command-line equivalent: -exportLanguage
  • export_margin โ€” integer, default 0; command-line equivalent: -export_margin
  • flipvisualhints โ€” boolean, default false; command-line equivalent: -flipvisualhints
  • flushleft โ€” boolean, default false; command-line equivalent: -flushleft (true), -center (false)
  • freehand_resolution โ€” integer, default 25; command-line equivalent: -freehand_resolution
  • grid_color โ€” string, default black; command-line equivalent: -grid_color
  • grid_unit โ€” string, default 1/16 (inch) or 0.1 (metric); command-line equivalent: -grid_unit
  • hiddentext โ€” boolean, default false; command-line equivalent: -hiddentext
  • icon_view โ€” boolean, default true; command-line equivalent: -icon_view (true), -list_view (false)
  • image_editor โ€” string, default xv; command-line equivalent: -image_editor
  • inches โ€” boolean, default true; command-line equivalent: -inches (true), -imperial (true), -centimeters (false), -metric (false)
  • installowncmap โ€” boolean, default false; command-line equivalent: -installowncmap
  • internalborderwidth โ€” integer, default 1; command-line equivalent: -internalBW
  • international โ€” boolean, default true; command-line equivalent: -international (true), -nointernational (false)
  • jpeg_quality โ€” integer, default 75; command-line equivalent: -jpeg_quality
  • justify โ€” boolean, default false; command-line equivalent: -left (false), -right (true)
  • keyFile โ€” string, default CompKeyDB; command-line equivalent: -keyFile
  • landscape โ€” boolean, default true; command-line equivalent: -Landscape (true), -landscape (true), -Portrait (false), -portrait (false)
  • latexfonts โ€” boolean, default false; command-line equivalent: -latexfonts
  • library_dir โ€” string, default ~/xfiglib; command-line equivalent: -library_dir
  • magnification โ€” float, default 100; command-line equivalent: -magnification
  • max_image_colors โ€” integer, default 64; command-line equivalent: -max_image_colors
  • monochrome โ€” boolean, default false; command-line equivalent: -monochrome
  • multiple โ€” boolean, default false; command-line equivalent: -multiple
  • normalFont โ€” string, default 6x13; command-line equivalent: -normal
  • overlap โ€” boolean, default true; command-line equivalent: -overlap (true), -nooverlap (false)
  • pageborder โ€” string, default lightblue; command-line equivalent: -pageborder
  • paper_size โ€” string, default Letter (inch) or A4 (metric); command-line equivalent: -paper_size
  • pheight โ€” float, default 8.5 (landscape) or 9.5 (portrait); command-line equivalent: -pheight
  • pwidth โ€” float, default 11 (landscape) or 8.5 (portrait); command-line equivalent: -pwidth
  • rigidtext โ€” boolean, default false; command-line equivalent: -rigid (true)
  • rulerthick โ€” integer, default 24; command-line equivalent: -rulerthick
  • scale_factor โ€” float, default 1.0; command-line equivalent: -scale_factor
  • showallbuttons โ€” boolean, default false; command-line equivalent: -showallbuttons
  • showaxislines โ€” boolean, default true; command-line equivalent: -showaxislines (true), -dontshowaxislines (false)
  • showballoons โ€” boolean, default true; command-line equivalent: -showballoons (true), -dontshowballoons (false)
  • showdepthmanager โ€” boolean, default true; command-line equivalent: -showdepthmanager (true), -dontshowdepthmanager (false)
  • showlengths โ€” boolean, default false; command-line equivalent: -showlengths (true), -dontshowlengths (false)
  • shownums โ€” boolean, default false; command-line equivalent: -shownums (true), -dontshownums (false)
  • showpageborder โ€” boolean, default true; command-line equivalent: -showpageborder (true), -dontshowpageborder (false)
  • single โ€” boolean, default true; command-line equivalent: -single
  • smooth_factor โ€” integer, default 0; command-line equivalent: -smooth_factor
  • specialtext โ€” boolean, default false; command-line equivalent: -specialtext
  • splash โ€” boolean, default true; command-line equivalent: -splash (true), -nosplash (false)
  • spellcheckcommand โ€” string, default spell %s; command-line equivalent: -spellcheckcommand
  • spinner_delay โ€” integer, default 500 (ms); command-line equivalent: -spinner_delay
  • spinner_rate โ€” integer, default 100 (ms); command-line equivalent: -spinner_rate
  • startfillstyle โ€” integer, default 0; command-line equivalent: -startfillstyle
  • startfontsize โ€” float, default 12; command-line equivalent: -startfontsize
  • startgridmode โ€” integer, default 0; command-line equivalent: -startgridmode
  • startlatexFont โ€” string, default Default; command-line equivalent: -startlatexFont
  • startlinewidth โ€” integer, default 1; command-line equivalent: -startlinewidth
  • startposnmode โ€” integer, default 1; command-line equivalent: -startposnmode
  • startpsFont โ€” string, default Times-Roman; command-line equivalent: -startpsFont
  • starttextstep โ€” float, default 1.2; command-line equivalent: -starttextstep
  • tablet โ€” boolean, default false; command-line equivalent: -track,
  • trackCursor โ€” boolean, default true; command-line equivalent: -track (true), -notrack (false)
  • transparent_color โ€” integer, default -2 (none); command-line equivalent: -transparent_color
  • userscale โ€” float, default 1.0; command-line equivalent: -userscale
  • userunit โ€” string, default in (inches) or cm (metric); command-line equivalent: -userunit
  • visual โ€” string, default *; command-line equivalent: -visual
  • write_bak โ€” boolean, default true; command-line equivalent: -write_bak
  • zoom โ€” float, default 1.0; command-line equivalent: -zoom
โญ tiny but important footnote, bestie: the * for depth and visual means the default visual and depth depend on your X server. Use xdpyinfo to see what visuals and depths are supported. Don't guess, go check. ๐Ÿ’…

๐Ÿ› BUGS and RESTRICTIONS ๐Ÿ›

Please send bug reports, fixes, new features etc. to:

thomas.loimer@tuwien.ac.at

Because of the difference of the fonts shown on the canvas and the PostScript fonts on printers, text alignment can be problematic. ๐Ÿ˜ญ Just how it is.

Not all operations employ smart redrawing of objects which are altered as a by product of the operation. You may need to use Redraw in these cases.

If the image is panned, or the xfig window is iconified and de-iconified during the middle of an operation (e.g. while drawing a line), the picture will be distorted. ๐Ÿ™ˆ You can fix it with Redraw after the operation is complete.

When zoomed very large, the length of dashes in dashed lines will top out at 255 pixels long. This is due to a restriction in X that the dash list is defined by char (255 pixels maximum for a dash). The figure will print correctly, however โ€” so it's giving visual-only drama. ๐Ÿ’€

When you do a copy/rotate with multiple copies, only the creation of the last object can be undone with the Undo button.

Modifications to text using the popup search/update/replace/spell check panel cannot be undone. No takebacks, no undo, periodt. ๐Ÿšซ


๐Ÿ‘€ SEE ALSO ๐Ÿ‘€


๐Ÿซถ ACKNOWLEDGEMENT ๐Ÿซถ

(From the original author, Supoj Sutanthavibul): Many thanks goes to Professor Donald E. Fussell who inspired the creation of this tool. ๐Ÿ‘‘

(From Brian Smith): Thanks to all the users who have contributed to xfig, especially Paul King who, besides adding many features, revamped the look and feel which became version 2.1. ๐ŸŒˆโœจ

okay bestie, legal era. read it, it's short, it's important ๐Ÿ’…

  • Original Copyright (c) 1985 by Supoj Sutanthavibul
  • Parts Copyright (c) 1989-2015 by Brian V. Smith
  • Parts Copyright (c) 1991 by Paul King
  • Parts Copyright (c) 2016-2024 by Thomas Loimer
  • Other Copyrights may be found in various files

so here's the whole license vibe, no cap, word for word:

Any party obtaining a copy of these files is granted, free of charge, a full and unrestricted irrevocable, world-wide, paid up, royalty-free, nonexclusive right and license to deal in this software and documentation files (the "Software"), including without limitation the rights to use, copy, modify, merge, publish and/or distribute copies of the Software, and to permit persons who receive copies from any such party to do so, with the only requirement being that this copyright notice remain intact.

and the โœจ disclaimer โœจ, which is giving very serious:

THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

also, PSA: PostScript is a trademark of Adobe Systems Incorporated. ๐Ÿ“Ž


more copyright lore, this time from the pbmplus code:

  • Parts Copyright (C) 1989 by Jef Poskanzer.
  • Copyright notice for pbmplus code:
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. This software is provided ``as is'' without express or implied warranty.

๐Ÿ“ FILES ๐Ÿ“

the lil file map of where everything lives. bookmark this, fr fr ๐Ÿ—‚๏ธ

  • /usr/share/xfig/CompKeyDB โ€” the data base of compose (meta) key sequences for 8-bit characters. wanna use a different one? you can point at another file with the command line option -keyFile or the X toolkit resource keyFile. slay ๐Ÿ’…
  • /usr/share/doc/xfig/html โ€” this directory contains the html documentation. it's giving "read the docs" energy, as you should ๐Ÿ“š
  • /usr/share/doc/xfig/FORMAT3.2 โ€” description of Fig file format. yes bestie, the actual format spec ๐Ÿซถ
  • /usr/share/xfig/Libraries โ€” this directory contains libraries of Fig objects such as electrical symbols, logic symbols, etc. drag-and-drop icons but make it 1990s โœจ
  • /usr/share/X11/app-defaults/Fig โ€” application defaults file. this is where the X resources live ๐Ÿ’–
  • /usr/share/applications/org.xfig.xfig.desktop โ€” desktop entry file. it's how your launcher finds her ๐Ÿ‘‘
  • /usr/share/metainfo/org.xfig.xfig.metainfo.xml โ€” appstream metadata. software-center lore ๐ŸŒธ
  • /usr/share/pixmaps/xfig.png โ€” desktop icon. the face card. the moment. ๐ŸŽ€

๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

many people have contributed to xfig. here is a list of the people who have contributed the most (in chronological order). this is the group chat hall of fame, genuinely iconic ๐Ÿ’œ

Version 1

  • Original author: Supoj Sutanthavibul, University of Texas at Austin
  • The LaTeX line drawing modes were contributed by: Frank Schmuck, Cornell University
  • Original X11 port by: Ken Yap, Rochester
  • Variable window sizes, cleanup of X11 port, right hand side panel: Dana Chee, Bellcore
  • Cleanup of color port to X11 by: John T. Kohl, MIT

Version 2.0

  • Area fill, multiple line thicknesses, multiple fonts and font sizes, bottom panel, line style/thickness, (and anything else that wasn't written by the others) by: Brian Smith (standard disclaimer applies) (bvsmith@lbl.gov)
  • Popup change-object menu by: Jon Tombs, Frank Schmuck
  • Zooming and panning functions, shift key select mechanism by: Dieter Pellkofer, Henning Spruth
  • Depth feature by: Mike Lutz
  • Cut/Paste by: Tom Tkacik

Version 2.1

  • Indicator panel, file menu popup, print menu popup, panning with rulers, mouse function window, regular polygon, rubberbanding of circles/ellipses, filled splines on canvas, dashed/dotted splines on canvas, update button, arbitrary angle rotation of objects, alignment in compound, object scaling, constrained copy/move, corner markers for compound, context sensitive corner markers, smarter redraw, undo for compound and point move for boxes, cancel object creation, point positioning to three resolutions, TransFig scalable text, hidden text, special text, save of figure on crash by: Paul King (king@cs.uq.oz.au) with help from: Brian Smith and Micah Beck (beck@cs.utk.edu)
  • Encapsulated PostScript importing by: Brian Boyter
  • Pan/zoom with ctrl key/mouse by: Henning Spruth
  • International characters by: Herve Soulard
  • Directory Browser based on XDir by: Win Treese, Digital Equipment Corporation
  • Rotated ellipses by: James Tough, Dept. of Computer Science, Heriot-Watt University, Scotland
  • Rotated text from the xvertext package by: Alan Richardson, Space Science Centre, School of MAPS, University of Sussex
  • Popup scale menu and dynamic switching between inches and cm by: Paul King (king@cs.uq.oz.au)
  • Extensive man page formatting revisions by: David W. Sanderson
  • Display Postscript code for IBM RS/6000 by: Dave Hale (dhale@green.mines.colorado.edu)

Version 3.0

  • New arrowhead types, separate pen/fill colors, new file protocol, more colors with extended color popup panel, new arc style, new fill patterns (bricks, etc), new line join and cap styles, export offset and file load offset, XPM import, XBM import and export (and anything else that wasn't written by the others) by: Brian Smith (Note: the color popup panel was based on xcoloredit by Richard Hesketh)
  • GIF header reading code by: David Koblas from the giftoppm part of the pbmplus package
  • XPM export code (using XPM3 libraries) by: Karel van Houten (K.H.C.vanHouten@research.ptt.nl)
  • Higher figure resolution (1200dpi) by: Ross Martin (martin@trcsun3.eas.asu.edu)
  • Color quantization using neural network by: Anthony Dekker (dekker@ACM.org)
[NEUQUANT Neural-Net quantization algorithm by Anthony Dekker, 1994. See Kohonen neural networks for optimal colour quantization'' in Network: Computation in Neural Systems'' Vol. 5 (1994) pp 351-367. for a discussion of the algorithm.]
  • Floyd-Steinberg algorithm for dithering color images on monochrome displays lifted from the Pbmplus package by Jef Poskanser.
  • rotate/flip objects around/about selected anchor point and multiple copies of objects by: Uwe Bonnes (bon@lte.e-technik.uni-erlangen.de)
  • Input tablet extension by: Greg LaCoste (greg@seismo.do.usbr.gov)

Version 3.1

bestie, the lore here is so specific and i love it:

  • The only difference between protocol version 3.0 and version 3.1 is that the position of the ``magnet'' has been shifted by 14 fig units. In the 2.1 and older versions of xfig the grid was in multiples of 5 fig units, but they were on intervals 4, 9, 14, 19, etc. When version 3.0 was created, coordinates were simply multiplied by the ratio of the resolutions (1200/80 = 15) so values like 4 became 60 instead of 74 ((4+1)*15 - 1). ๐Ÿ’€ the math did math things
  • The JPEG import/export code uses the Independent JPEG Group software (see jpeg/README for details)
  • Image browser, editor and screen capture features by: Jim Daley (jdaley@cix.compulink.co.uk)

Version 3.2

  • The changes to the version 3.2 file protocol are the addition of the paper size, print/export magnification, single/multiple page indicator and a transparent color name used for GIF export to the header of the file.
  • The other difference in the version 3.2 protocol is the mathematical model used for splines. The new version uses X-splines which allows the user to mix interpolation and approximation points in a same curve. More precisely, it means that an X-spline curve is neither an interpolated spline nor an approximated one, it is BOTH (the behaviour of each point is controlled by one single parameter called ``shape factor''). For additional information about X-splines, see:
  "X-Splines: A Spline Model Designed for the End User"
  by C. Blanc and C. Schlick, Proceedings of SIGGRAPH'95
  http://dept-info.labri.u-bordeaux.fr/~schlick/DOC/sig1.html
Caveat: Because previous spline models (quadratic B-splines and Bezier with hidden points) are no longer supported, curves that are present in version 3.1 and older files are automatically converted to X-splines. This translation is only an approximation process. It means that the converted curves are not exactly the same as the original ones. Though they are usually very close, some hand-fitting may be needed in some pathological cases.
  • Inclusion of X-splines by: Carole Blanc (blanc@labri.u-bordeaux.fr), Christophe Schlick (schlick@labri.u-bordeaux.fr)
Note: the initial implementation was done by C. Feuille, S. Grosbois, L. Maziere and L. Minihot as a student practice (Universite Bordeaux, France).
  • Open/close compound feature written by Bill Taylor (bill@mainstream.com)
  • Library feature written by Stephane Mancini (mancini@elecsrv.enst.fr) (object preview by Brian V. Smith)
  • The library objects in the Electrical and Logic libraries were done by Peter Hiscocks (phiscock@ee.ryerson.ca)
  • The library objects in the Computer, Networks, and Hospital-Equipment libraries were extracted from the clipart example files by Bill Chimiak (chim@bgsm.edu)

Version 3.2.3 and newer

  • Please see the CHANGES file for credits for newer releases.

๐Ÿ“ NOTES ๐Ÿ“

  • Many bug fixes/cleanups etc. by a host of faithful users. ๐Ÿซถ
  • See the CHANGES file for all the credits.
  • The Fig2dev package was written by Micah Beck and is maintained by Thomas Loimer.

and that's the whole page bestie, you read the entire thing, main character behavior fr fr ๐Ÿ’–

this edition is from Xfig 3.2.9a, dated Dec 2024, and it's page xfig(1) โ€” go forth and draw, you ate that โœจ๐Ÿฆ‹๐ŸŒธ๐Ÿ’…

๐Ÿ“ฆ where this page comes from