[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: True Type font support - and a vmware note...



Tzafrir Cohen wrote:

> > > the font server shipped with redhat 6.0 support truetype fonts,
> > > to add them do the following steps:
> > > 1. mkdir /usr/lib/X11/fonts/truetype and put your truetype fonts in there
> > > 2. cd /usr/lib/X11/fonts/truetype
> > > 3. ttmkfdir >fonts.scale
> 
> fonts.scale ? Shouldn't it be fonts.dir?

The 'mkfontpath' on the next stage copies it to 'fonts.dir'. It also
works if you redirect directly into fonts.scale and skip mkfontdir.
> 
> > > 4. mkfontdir
> > > 5. chkfontpath --add /usr/lib/X11/fonts/truetype
> 
> I have had some problems with chkfontpath (at least the one that comes
> with mandrake 6.0). IIRC I ended up editing /etc/X11/fs/config and
> restarting xfs .

I didn't have any problem with 'chkfontpath', and '/etc/X11/fs/config'
seems fine. Nonetheless, even after a reboot I don't see the TTF fonts
in 'xlsfonts'.

Solution: run  'xset +fp my-font-directory'. 

In fact, doing this works if you neither run 'chkfontpath' not edit
'/etc/X11/fs/config' -- until you restart things.

To sum things up:
Getting visual Hebrew in Netscape 4.61 on RedHat 6.1:
-------------------------------------------------------
1. mkdir /usr/lib/X11/fonts/truetype
2. cd /usr/lib/X11/fonts/truetype
   Copy the TTF files of your favorite Hebrew font [1] to this
directory.
3. ttmkfdir >fonts.dir
4. chkfontpath --add /usr/lib/X11/fonts/truetype
5. xset +fp /usr/lib/X11/fonts/truetype
6. Restart Netscape and set the new fonts in the Preferences dialog.

To add additional TTF fonts in the future, do stages 2-3 above, then:
%  xset fp rehash


[1] The 'Gold' fonts don't work well.  Try the following:
ftp://ftp.ibm.net.il/pub/fonts/pc/NeText.exe or
ftp://ftp.ibm.net.il/pub/fonts/pc/webfont.exe (just 'unzip' it).
-------------------------------------------------------

  Regards,
    Eran Tromer

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il