Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
* 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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.