Table Of Contents

Tcl/Tk

Since XStick is written in Tcl/Tk, you're going to need to aquire and install Tcl/Tk to get started. Scriptics is maintaining the language these days, and you'll need at least version 8.0 for your platform. Full details on installation for various platforms can be found on Scriptics site. I've been using 8.0.5, which is not the latest, greatest, but it is very stable. This link should get you to right place at Scriptics.

Ghostview

You'll need ghostview, or something similar to print the EPS output from XStick(TM). The actual installation of ghostview I'll leave to it's docs. Most contempory Linux distributions come with Ghostview already setup. The Ghostview homepage is here.

XStick

XStick is all zipped up with it's own subdirectories. You can pretty much put it anywhere, as it assumes all it's own files are relative to it's home. If you setup an icon in Windows, be sure to specify the correct working directory. The actual executable is xstick.tcl, which in turn loads all the files in the "lib" subdirectory. I broke the code up into seperate files as it is over 6000 lines now and getting a little tough to maintain as one file. On the Mac, you'll want to drop this file onto the Tcl/Tk Drag & Drop Tclets app to make an executable file/icon. I've been calling the app XStick. I've also found you will want to change the memory allocation for the XStick app from 4096 to 8192 in File | Get Info | Memory | Preferred Size. Otherwise I've found the application crashes when calling up the defaults editor or the color chooser.

XStick Font

Depending on your platform, you may need the XStick font in both Truetype and Postscript Type 1 formats. Linux/Unix uses postscript for both the screen display and printing, while Windows and the Mac use Truetype for the display. (The Mac can use postscript, but I had little success getting nice smooth fonts on the display, even with ATM). All my cross-platform font fine-tuning used TrueType on both Windows and the Mac. If you are using Ghostview to manipulate your printed output, you'll need the postscript font for it.
Windows:
Assuming you've installed XStick under C:\XStick, do the following:

Open the:
Start Menu | Settings | Control Panel | Fonts

Select:
File | Install New Font, and browse to the C:\XStick\fonts directory and select xstick.ttf.
Linux:
If you want to do the install manually, here are the steps (You will need to be the root user. This is assuming you installed XStick in the /opt directory.):

cd /opt/XStick/fonts
cp xstick.pfb /usr/X11/lib/fonts/Type1
chown root.wheel /usr/X11/lib/fonts/Type1/xstick.pfb

Using the editor of your choice (vi, pico etc.) edit the file /usr/X11/lib/fonts/Type1/fonts.scale and add an entry for the xstick font like this:

xstick.pfb -unknown-xstick-medium-r-normal--0-0-0-0-p-0-iso8859-1

Also increase the number in the first line of the file by one.

mkfontdir /usr/X11/lib/fonts/Type1
xset fp rehash

You may need to restart X before the fonts are available.

For Mandriva Linux, you can use drakfont: drakfont --install /home/stew/build/xstick/fonts/xstick.ttf
(X restart should not be necessary, xfs is restarted by drakfont)
MacOS:
Open the XStick folder wherever you placed it after unzipping it. Open the fonts folder and open "XStickMacFont.zip" and holding the "Option" key, drag and drop the XStick font into your system folder. In my case, I needed to restart MacOs before I could use the font. You want the little suitcase font with the "TT" on it.

Ghostview

The procedure for ghostview is much like Linux. Wherever your ghostview installation ended up, there should be a fonts directory. (Or on Linux it will be somewhere like /usr/local/lib/ghostscript. Copy the xstick.pfb file into the fonts directory under ghostview. Now find a file name "Fontmap". You will need to edit this file and add the following line somewhere under the "actual fonts" section:

/Xstick (xstick.pfb) ;

On most of the installs I've seen, this "Fontmap" file is both in the root ghostview directory and the "fonts" directory. To be safe, it's probably wise to edit both.

<< Previous Next >>