This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: fonts and symbolic links
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: cygwin-xfree at cygwin dot com
- Date: Tue, 24 Aug 2004 13:06:33 -0400 (EDT)
- Subject: Re: fonts and symbolic links
- References: <412B33EF.2020303@hishome.net>
- Reply-to: cygwin-xfree at cygwin dot com
- Reply-to: cygwin-xfree at cygwin dot com
- Resent-subject: Re: fonts and symbolic links
On Tue, 24 Aug 2004, Boaz Harrosh wrote:
> As I am trying to pack a minimum X installation
> (see:http://cygwin.com/ml/cygwin-xfree/2004-07/msg00207.html)
>
> I have played around with using windows fonts and only supplying the smallest
> possible fonts in download.
> I have done the following:
> 1) run> mkfontdir - in the /cygdrive/c/windows/font/ directory
> 2) run> ttmkfdir.exe >> font.dir - I found ttmkfdir.exe in an old cygwin/xfree
^^^^^^^^
Shouldn't this be "fonts.dir" (note the "s")?
> (not x.org) installation. It is very useful still. I suggest someone updates
> it to the new x.org package or should I have used something else?
Do you Google: <http://google.com/search?q=ttmkfdir+cygwin>? The matches
show that ttmkfdir is not part of the Cygwin/X distribution, so you
must've downloaded it separately. FWIW, I'm going to do some work with
fonts soon, and might consider making ttmkfdir into a Cygwin package,
installable via setup.exe.
> [Q] if I run> ln -s /cygdrive/c/windows/font/ /usr/X11r6/lib/X11/fonts/TTF -
^^^^^
Should this be "Fonts" (note the "s")? Also, Cygwin is sometimes
configured to be case-sensitive, and it's always better to use the correct
filename case. That would make it (by default) something like
/cygdrive/c/WINDOWS/Fonts. I'd also suggest removing the trailing slash
("/") from the ln command, just in case.
> On load, XWin.log will still complain about /usr/X11r6/lib/X11/fonts/TTF been
> not loadable.
> But if I deep copy > cp /cygdrive/c/windows/font/*
> /usr/X11r6/lib/X11/fonts/TTF/ - than it is OK. Why would XWin not follow the
> symbolic link prepared by cygwin1.dll? This is Important as it is a big
> Resource and I don't want to duplicate windows font directory.
I don't know how much help it is, but I found that a directory of symlinks
(instead of a symlink to a directory) works with XWin. So, try something
like
ln -s /cygdrive/c/WINDOWS/Fonts/* /usr/X11R6/lib/X11/fonts/TTF
and see if it helps.
And, as you've already noticed, mount will also work.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing." -- Dr. Jubal Harshaw