To install FontSpec.py simply extract the archive to your PageStream scripts directory. To make this help file available to the script copy it to the Scripts directory in your PageStream Help folder.
!IMPORTANT! Before running the script make sure to open the PageStream files and save them so that font substitution has been completed. Otherwise the script will hang PageStream waiting for the Font Substitution dialog to close—when it can't while a script is running. Please note that the document name must not be changed—otherwise the script will not work. For best results do not have both FontSpec PageStream files open at once, nor have either open when running the script.
* It must be FontSpec for the script to work. If it says FontSpec1 it will not work
** To avoid above problem never have both open at the same time
*** To avoid issues don't have either document open when running the script
The script quietly opens the document in the background. You should never see it, just progress bars and print output.
I have not tested "Custom Layout". At one time I know that it worked, but I have no idea at this point.
Some of the scripts default behaviors can be configured by editing the values of variables located at the top of the FontSpec.py file. Doing so is not particularly recommended, but is presently available. Before making any changes to the script it is highly recommended that you make a copy of the working original.
This script is not perfect, particularly in its current incarnation. Although some effort has been made to prevent it from hanging or crashing PageStream there is no guarantee that it will not do so. Problems currently noted are as follows.
You may not realize what fonts you have cause problems: using this script is one way to find out (the hard way).
This script is used to generate font specimen sheets to help select fonts to use. You can choose to print detailed specimens with one font per page, small specimens with 6 fonts per page or using a custom layout. You can also choose to print All installed fonts or Selected fonts only. As many pages as necessary for the number of fonts and the layout selected will be used.
Each dialog has a help button (which brings up this information) and a cancel button (which terminates the script).
The initial dialog allows you to choose, via drop down menus, the number of fonts per page (1, 6 or custom) and whether to simply use all fonts or allow selection of the fonts to be printed. The result of clicking the Proceed button depends on the selections made.
This dialog allows the selection of fonts. There are two lists, one of fonts available for selecting, "Available Typefaces", and one of fonts chosen for use in the specimen sheet, "Typefaces to Use". Initially no fonts are in the "Typefaces to Use" list. A font is only ever in one list at a time. There are four buttons:
When the desired fonts have been selected clicking the "Proceed" button will immediately print the specimen sheet unless a custom layout was chosen in which case that dialog is presented.
Note: there is a noticeable delay when moving fonts between the two lists. The more fonts available to PageStream the longer and more noticeable the delay.
This dialog allows the layout of the font specimen sheet to be customized in a variety of ways. First, the layout of the font samples is set by the number of rows, the number of columns and the spacing between rows and the spacing between columns. The font sample will be dynamically sized to fit in the bounding box defined by these settings. In addition the typeface for setting the font name for the sample is selected from a drop down menu.
There are two ordering methods: row first and column first. The row first method is the default. To use column first deselect the "Row First" checkbox. In row first the top row is filled from left to right, then the second row and so on to the bottom of the page. In column first the first column is filled from top to bottom, then the second column and so on to the right side of the page.The page size can be selected via a drop down menu and even set to custom sizes. The top, left, right and bottom borders can be specified.
Note: measurements are in units per the default user settings. They can be forced to the desired units by simply including the unit specifier. For example, 0.25" will be read as a quarter inch no matter what the default user settings are.