On Wed, Dec 15, 2004 at 10:12:15AM +0200, Nadav Har'El wrote: > So, if you have a Windows installation, you can copy all the TTF files > from it to your Linux disk, and put them on some directory, say > /usr/local/microsoft-fonts. > > Then you need to tell your software to use them. Unfortunately, on Linux > there are many font standards, and each program uses it's own, so getting > all your software to recognize these fonts is not trivial.
Not exactly. Most programs now use Xft/fontconfig. The default configuration of fontconfig considers everything under /usr/share/fonts to be a fonts directory. So if you drop the fonts somewhere under /usr/share/fonts (preferably in a separate subdirectory), all you need to do is to re-create the fonts-cache file: fc-cache . > If you have > a modern distribution (e.g., Fedora), I suggest you start with running > the command > > chkfontpath -a /usr/local/microsoft-fonts This is for the "other" programs. And you still need a valid fonts.dir file. > > As root (it's a one time operation, you don't need to repeat it after > logins or reboots). > If you want OpenOffice to use these fonts, the previous commands may or > not be enough, depending on your exact software versions (e.g., strangely > enough it was enough on Fedora Core 1, but no longer works on Fedora Core 3). Decent versions of OOo use Xft . > If it doesn't work (the MS Fonts don't appear on the OpenOffice menus), you > can try running ~/.openoffice/spadmin or ~/OpenOffice*/spadmin if you have > such a thing, and adding all the fonts in that directory. This is what you need to do if you have to work with an unpatched version from OpenOffice.org . > If even that doesn't > work, you can give OpenOffice your own copy of the fonts. I think (but > I'm not sure) you create a directory ~/.fonts, and then create symbolic > links there for all the TTF fonts. Someone please correct me if this is > the wrong directory name. This is equivalent to copying them under /usr/share/fonts . The default configuration of fontconfig also includes $HOME/.fonts . If you put there many fonts files it would probably be preffered to run 'fc-cache' as that user, so your programs won't have to scan all the font files in that directory on every startup. > > Of course, what I just said is legal only if you own a license of Windows > and and are using the fonts for your personal use. Distributing these fonts > to others, or installing them on more than one machine, is probably not > legal. But there is http://corefonts.sf.net , which is legal. And of course there are the Culmus fonts, which are free as in GPL, thanks to Maxim Iorsh. -- Tzafrir Cohen +---------------------------+ http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend| mailto:[EMAIL PROTECTED] +---------------------------+ ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]