ttmkfdir no longer needed
Harold L Hunt II
Sat Apr 10 01:10:00 GMT 2004
It looks like we no longer need ttmkfdir in order to expose the fonts
installed with Windows to X11. The mkfontscale utility that is included
with out distribution was inspired by ttmkfdir and essentially replaces it:
You can do something like the following right now (well, not with Cygwin
1.5.9 since mkfontscale will core dump, you have to use snapshot of
cygwin1.dll for the moment):
1) mkfontscale /cygdrive/c/WINDOWS/Fonts
2) mkfontdir /cygdrive/c/WINDOWS/Fonts
3) Launch Cygwin/X
4) In a bash shell under Cygwin/X, run:
xset fp+ /cygdrive/c/WINDOWS/Fonts
5) Run xfontsel and observe that picking 'microsoft' from the 'rgstry'
category exposes 'microsoft sans serif', 'tahoma', and 'verdana' among
others under the 'fmly' category. Note also that valid chartacters
appear when you select these fonts.
Due to this I am going to pull the link to ttmkfdir from our 'Ported
Software' page. Perhaps someone would like to write a postinstall
script that creates symlinks to the Fonts folder for Windows under
/usr/X11R6/lib/X11/fonts/windows, then runs mkfontscale and mkfontdir in
that folder (since we can not guarantee that we have permissions to
create files in the actual Fonts folder for Windows). Then it would
take a minor adjustment of our startup scripts to pass this additional
font folder to Cygwin/X on startup.
Any takers? I'll package it if somebody works the kinks out of it.
More information about the Cygwin-xfree