This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fonts and symbolic links


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


fixed	     -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso10646-1
2
6x12.pcf.gz -misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso10646-1
cursor.pcf.gz cursor

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]