This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
ttmkfdir no longer needed
- From: Harold L Hunt II <huntharo at msu dot edu>
- To: cygx <cygwin-xfree at cygwin dot com>
- Date: Fri, 09 Apr 2004 21:09:29 -0400
- Subject: ttmkfdir no longer needed
- Reply-to: cygwin-xfree at cygwin dot com
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:
http://freedesktop.org/~xorg/X11R6.7.0/doc/mkfontscale.1.html
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.
Harold