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.
Go to your .fonts dir and look for a file fonts.dir in that .. That file should contain a list of all fonts in your .fonts directory.. For eg have a look at the following file
Code:
37
gautami.ttf -microsoft-Gautami-medium-r-normal--0-0-0-0-p-0-iso10646-1
mangal.ttf -microsoft-Mangal-medium-r-normal--0-0-0-0-p-0-iso10646-1
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-adobe-standard
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-ascii-0
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-iso10646-1
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-iso8859-1
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-iso8859-10
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-iso8859-11
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-iso8859-13
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-iso8859-15
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-iso8859-16
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-iso8859-2
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-iso8859-3
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-iso8859-4
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-iso8859-5
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-iso8859-6
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-iso8859-7
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-iso8859-8
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-iso8859-9
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-koi8-r
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-koi8-ru
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-microsoft-ansi
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-microsoft-cp1250
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-microsoft-cp1251
micross.ttf -microsoft-Microsoft Sans Serif-medium-r-normal--0-0-0-0-p-0-microsoft-cp1252
The 37 in the first line is the total no of fonts that the ttf files contain ( Not the total number of ttf files) and there should be description for all the 37 fonts in the next lines... The fonts.dir should be in a format as above.. Otherwise delete it, go to home directory, execute that mkfontdir command again..
So If it doesn't work again ...., look for a fonts.scale file ( created by ttmkfontdir . here the step 4 comes to help) .. in the same directory. If it doesnt there just copy the output of your ttmkfdir to the file fonts.dir ( From the output poseted by you it seems that your ttmkfdir is an older version .. You may have to redirect the output to fonts.dir file )
Then do xset +fp $HOME/.fonts and check for any errors. If no errors restart X.
I finally succeeded to install a bunch of Thai font in this folder:
/usr/X11R6/lib/X11/fonts/TTF
I just copied them directly in this folder and this work great in Open Offic Org, I can type and print, the result is perfect.
My problem is that these Thai fonts won't display correctly in other programs. A default font appears instead an the position of vowels is not correct.
I would like these thai fonts to work for all text Editors, Mozilla browser-composer-mail, messanger, etc...
i've converted tff file to pfb and placed it under /usr/X11R6/lib/X11/fonts/Type1. i can use it in terminal now, or so. the same thing when i've copied tff font to ~/.fonts
but i still cannot use them with mozilla. all the fonts i've added were correctly described in ~/.fonts.cache-1. what should i do to use them with mozilla?
Hi, I installed a whole collection of fonts as root with no problem at all. Thing is I log in as a user and absolutely ALL characters in KDE appear as white boxes (= not reading the fonts somehow). Could it have anything to do with file permissions??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.