VFI Windows Font Utilities
==========================

Some ADK projects (e.g. ADK-GUI or ADK-Printer) use TTF fonts (True Type Fonts) and require a special 
font index file called fonts.dir. The index file fonts.dir is required by the X11 emulation library 
(e.g. part of ADK-GUI), which is responsible for the font handling. In past the file fonts.dir could 
only be generated with native Linux tools mkfontscale and mkfontdir (X11 font utilities). 

Since "official" Verifone Development Suite is supported for Windows only, 
developers requested the an appropriate font toolchain for Windows.

Do the following to create a new fonts.dir file on Windows:
1.  Install/Extract the VFI Windows Font Utilities ZIP package, e.g. to C:\tools
2.	Create a new folder, copy your TTF fonts to it and cd to this folder
2.	Call <toolpath>\mkfontscale.exe, e.g. C:\tools\mkfontscale.exe
3.	Call <toolpath>\mkfontdir.exe, e.g. C:\tools\mkfontdir.exe
4.	Result is a new fonts.dir file with following format (example):
----------------------------------------------------------------------------
56
DejaVuSans.ttf -misc-dejavu sans-medium-r-normal--0-0-0-0-p-0-iso10646-1
DejaVuSans.ttf -misc-dejavu sans-medium-r-normal--0-0-0-0-p-0-iso8859-1
DejaVuSans.ttf -misc-dejavu sans-medium-r-normal--0-0-0-0-p-0-iso8859-10
DejaVuSans.ttf -misc-dejavu sans-medium-r-normal--0-0-0-0-p-0-iso8859-15
DejaVuSans.ttf -misc-dejavu sans-medium-r-normal--0-0-0-0-p-0-iso8859-2
…
----------------------------------------------------------------------------

The file contains a list of available fonts that are supported by the TTF files in the folder. 
The first line contains the number of font lines following below. Each font line represents a 
font variant, which is specified by parameters in the XLFD string, which is is appended to the 
font file name (with blank). The parameters in the XLFD (X Logical Font Description) string are 
separated by a ‘-‘ and contain information of supported font attributes like affinity, weight 
and encoding. For more details and information about XLFD strings please refer to
http://en.wikipedia.org/wiki/X_logical_font_description
