LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to install Windows fonts in Linux � problem. (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-windows-fonts-in-linux-%EF%BF%BD-problem-335568/)

jamiem 06-20-2005 08:55 PM

How to install Windows fonts in Linux problem.
 
I'm attempting to change the fonts in Linux, to those from Windows. My problem is that in all of the tutorials I've read about Linux, they all seem to be setup in a way where beginners are excluded. Below is an example of which I am speaking:

Microsoft did a great job in providing excellent fonts in Windows. You can use those fonts in Linux/X to give it a look similar to Windows. Just follow four simple steps:

* Create a directory for new fonts, ( md /winfonts ).
* Copy MS True Type fronts (*.ttf) from windows font directory (usually c:\winnt\fonts or c:\windows\fonts) to /winfonts.

cp /mnt/win_c/WINNT/Fonts/*.ttf /winfonts

If you do not have windows, download core true type fonts from http://corefonts.sourceforge.net [4]. You also need to download cabextract [3] utility to extract fonts files (*.ttf) from .exe file. Make sure to follow copyrights.

* Edit /etc/fonts/fonts.conf to add /winfonts to font path. Note that /etc/X11/XftConfig is deprecated and replaced by /etc/fonts/fonts.conf.

fonts.conf file starts with definition of all fonts directory. You must add /winfonts there in order to add it into the font path. Add following line to fonts.conf.

<dir>/winfonts/</dir>

* Save fonts.conf. Now run following commands from shell.

cd /winfonts
ttmkfdir > fonts.dir [Does this step require?]
fc-cache -f -v [You should see that aall fonts in /winfonts are getting cached].

Start X, now you should be able to use your new fonts in X.


(Source: http://www.geocities.com/ymotiwala/fonts.html)

The step that is stumping me is the following:

* Edit /etc/fonts/fonts.conf to add /winfonts to font path. Note that /etc/X11/XftConfig is deprecated and replaced by /etc/fonts/fonts.conf.

fonts.conf file starts with definition of all fonts directory. You must add /winfonts there in order to add it into the font path. Add following line to fonts.conf.
<dir>/winfonts/</dir>


How do I do the above? I'm fine until I get to that point (at least, I think I am).

The biggest problem that I'm running into is that the majority of tutorials do not explain where to input the commands. In SuSE (8.2 Personal) I'm using the shell, is this correct? I'm assuming yes, but the reason that I truly ask is that I am getting many errors by doing so, even when the commands are checked and rechecked for errors.

Thanks, and I'm sorry for all of the questions.

Jamie

merchtemeagle 06-20-2005 09:11 PM

Yes, you should use the shell.

Give the errors and the input that returned the errors, otherwise we can't help you.

craigevil 06-20-2005 10:37 PM

Doesn't SUSE use a package manager? In Debian all it takes is apt-get install msttcorefonts

synaptical 06-20-2005 11:00 PM

Re: How to install Windows fonts in Linux problem.
 
Quote:

Originally posted by jamiem
The step that is stumping me is the following:

* Edit /etc/fonts/fonts.conf to add /winfonts to font path. Note that /etc/X11/XftConfig is deprecated and replaced by /etc/fonts/fonts.conf.

fonts.conf file starts with definition of all fonts directory. You must add /winfonts there in order to add it into the font path. Add following line to fonts.conf.
<dir>/winfonts/</dir>


How do I do the above? I'm fine until I get to that point (at least, I think I am).

The biggest problem that I'm running into is that the majority of tutorials do not explain where to input the commands. In SuSE (8.2 Personal) I'm using the shell, is this correct? I'm assuming yes, but the reason that I truly ask is that I am getting many errors by doing so, even when the commands are checked and rechecked for errors.

Thanks, and I'm sorry for all of the questions.

Jamie

i think you are reading too much into it, confusing yourself. just take it literally. cd to the /etc/fonts directory, and then open the file called fonts.conf (actually, that should be local.conf. if you don't have a local.conf, copy fonts.conf to local.conf and make the changes in local.conf).

then, in local.conf, add the path to your window fonts just as it says:

<dir>/winfonts</dir>

you should see a list of similar entries, all with the same format of <dir>/font/path</dir>. just add it to the list, replacing /winfonts with the path to wherever you copied your windows fonts.

hth

jamiem 06-20-2005 11:44 PM

Re: Re: How to install Windows fonts in Linux problem.
 
Quote:

Originally posted by synaptical
then, in local.conf, add the path to your window fonts just as it says:

<dir>/winfonts</dir>

you should see a list of similar entries, all with the same format of <dir>/font/path</dir>. just add it to the list, replacing /winfonts with the path to wherever you copied your windows fonts.

hth

Worked like a charm - thank you so much!

And craigevil, it might, I'm just probably too new to all of this to know yet. I should probably look into that a.s.a.p.

Thanks to all who responded.


Jamie


All times are GMT -5. The time now is 06:57 AM.