LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-20-2005, 08:55 PM   #1
jamiem
LQ Newbie
 
Registered: Jun 2005
Location: California
Distribution: SuSE 8.2 Personal
Posts: 15

Rep: Reputation: 0
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

Last edited by jamiem; 06-20-2005 at 09:01 PM.
 
Old 06-20-2005, 09:11 PM   #2
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
Yes, you should use the shell.

Give the errors and the input that returned the errors, otherwise we can't help you.
 
Old 06-20-2005, 10:37 PM   #3
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 461Reputation: 461Reputation: 461Reputation: 461Reputation: 461
Doesn't SUSE use a package manager? In Debian all it takes is apt-get install msttcorefonts
 
Old 06-20-2005, 11:00 PM   #4
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 47
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
 
Old 06-20-2005, 11:44 PM   #5
jamiem
LQ Newbie
 
Registered: Jun 2005
Location: California
Distribution: SuSE 8.2 Personal
Posts: 15

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding TTF fonts from an existing Windows install... Eerath MEPIS 2 09-03-2005 06:00 AM
windows install problem (on a linux machine) supervillan Linux - Newbie 4 02-12-2005 01:57 PM
windows fonts for linux? kasperl Linux - Newbie 5 11-02-2003 12:05 PM
font problem with openoffice windows fonts Pete Dogg Linux - Software 8 11-02-2003 05:12 AM
Installing Windows Fonts in Linux Ken Ju-On Linux - Newbie 11 07-07-2003 07:18 PM


All times are GMT -5. The time now is 08:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration