InstallShield Font Installation Routines
Version 1.03, 27-Oct-1998
----------------------------------------
Troy Engel <tengel@palladium.net>


Package Layout:

.\Augie		Sample font used in sample setup
.\DLLSrc	16/32bit DLL source, VC 1.52c/6.0 projects
.\Include	InstallShield code
.\Sample	InstallShield 5.1 Intl West sample
.\Win16DLL	16bit DLL, v1.03
.\Win32DLL	32bit DLL, v1.03


Usage:

1. Copy contents of Include directory to your InstallShield
include directory.

2. Copy the DLLs from the 16/32 directories to your Setup's
"Language Independent" folder for each type.  These get unpacked
during operation to SUPPORTDIR automatically.

3. Include the line:
	#include "tefonts.h"
at the top of your SETUP.RUL file, right below the main includes
for the InstallShield functions.  See the sample.

4. Include the line:
	#include "tefonts.rul"
at the end of your SETUP.RUL file, right above the main include
for the InstallShield functions.  See the sample.

5. Install your fonts as desired using the available functions;
there are many ways this can be done.  The easiest way is to simply
call the function "InstallFontsFromDirectory(<dir>)" with the path
to your fonts in <dir>. (see the sample)  Another way would be to
call the "SetupFont" function directly, passing the parameters in
an individual fashion (see the .H/.RUL files for specifics).


Specifics:

The DLL contains one function, ReadFontName.  It's purpose in life
is to try and read the internal name out of a font.  In this code
I have used a global FontList, then iterate through the list one
font at a time, extracting the internal name and passing it to the
SetupFont function.  There are many other ways to use this, you can
even call the functions in any way you'd like -- this code only
represents the way in which I utilize the concept.

The rest of it is really straight forward code, you should be able
to read right through it with immediate understanding.  If you find
any bugs, I sure would love to hear about it! :-)


To Do:

1. Add more languages (send them on over!)
2. Write ReadFontName in InstallScript
3. Install fonts directly from a component
4. Figure out why sometimes, just sometimes, ReadFontName can't find
   the internal font name.  I've only seen it once.


Disclaimer:

This code was written and compiled under NT4 and IS51 Intl West.  It
was tested on WinNT4, Win95 and Win31.  It is unknown if it works on
Win98 or WinNT5, or even WinNT 3.51 for that matter.  Anyone who has
these machines and it *does* work for them OK, I'd love to hear from
you.  It hasn't broken any of my machines, not even a scratch;
however, your mileage may vary.  Inspect the source on your own
before using it if you are worried; I will not be responsible for
any damage incurred.


Credits:

Greg Binkerd - developer who wrote the MSDN article in 1995 or so
for reading the font name.  This DLL is an adaptation of his code.

Stefan Kruger - German translations, and runs InstallSite for all of
our benefits.  Visit the site at http://www.ibv-tools.de .

Dominique Blanchard - French translations/

Michael Burns and Karin at IS - provided original code back in Jan.
1996 for font stuff, where this all started.


Have fun!  If you find any bugs, add new features, whatever, drop
me a line so we can update the code.

-te

--
Troy Engel
Palladium Interactive
