fonts and symbolic links
Boaz Harrosh
boaz@hishome.net
Tue Aug 24 15:08:00 GMT 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 (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?
>
> [Q] if I run> ln -s /cygdrive/c/windows/font/
> /usr/X11r6/lib/X11/fonts/TTF - 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 managed to work around the symbolic links problem with mounting
c:\windows\fonts on /usr/X11r6/lib/X11/fonts/TTF/ so I have my Install
do that and it works. Even though its name is TTF it will actually
include all the windows fonts 95% of which are usable by XWin. Good Job
X.org for supporting all these windows font formats.
2 Issues remain.
1- The original one why links don't work. 2 - what's with ttmkfdir.exe
can/should it be included in cygwin/X?
( It was included in cygwin/XFree. Since the move to X.org it is no
longer there)
If any one wants to know:
Additional to the preparation of the windows fonts to be used by
cygwin/X one needs the following files:
1) in /usr/X11r6/lib/X11/fonts/misc/
6x12.pcf.gz
cursor.pcf.gz
fonts.alias
fonts.dir
(see 2 attached text files)
2) The original contents of fonts/encodings/ (0.5Mg)
3) Original contents of /fonts/util (0.2Meg)
3) All other fonts/ dirs can be removed. X11r6/bin can be trimmed down
to 1/2 a dozen files.
And thats it Nothing else need changed. The original X11r6/ installation
was 24Mg now it is down to 3.5Mg including extras.
And I am sorry to say that now (using the windows fonts) it looks much
(^2) better.
Free Life
Boaz
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fonts.alias
URL: <http://cygwin.com/pipermail/cygwin-xfree/attachments/20040824/e500d9f9/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fonts.dir
URL: <http://cygwin.com/pipermail/cygwin-xfree/attachments/20040824/e500d9f9/attachment-0001.ksh>
More information about the Cygwin-xfree
mailing list