Void's Font instructions didn't work!?!?!?

Place to discuss Fedora and/or Red Hat
Post Reply
User avatar
Calum
guru
guru
Posts: 1348
Joined: Fri Jan 10, 2003 11:32 am
Location: Bonny Scotland
Contact:

Void's Font instructions didn't work!?!?!?

Post by Calum » Sun Jan 12, 2003 2:33 pm

now the first time i followed your instructions for the truetype fonts, void main, it worked like a charm. then i reinstalled red hat (don't ask) and now i did the same thing and for some reason the truetype fonts don't seem to be available to the browsers and they don't show up in openoffice either. now i know i followed the instructions to the letter, so any suggestions as to how i can get it to work or what config files i can read to find out what hasn't been updated?
thanks...........

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Sun Jan 12, 2003 2:54 pm

I can't imagine how that is possible but if you say it didn't work it must not have. It's the first feedback that I have had that suggested the instructions didn't work. Let's break this down. You have a directory called "/usr/X11R6/lib/X11/fonts/TTF" right? And you copied your *.ttf files in there right? What is the output of:

ls -al /usr/X11R6/lib/X11/fonts/TTF

What is the output from:

/usr/sbin/chkfontpath

And since you would have run the mkfontscale and mkfontdir commands within that directory you should have two more files in there: fonts.scale and fonts.dir which should contain font information that looks something like this:

Code: Select all

tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso10646-1
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-1
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-2
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-3
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-4
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-5


And you should have restarted xfs and X (logging off and back on is likely not good enough, you'll likely need to drop to runlevel 3 and back to 5 (not sure about this to tell you the truth)).

And if you have the above tahomabd.ttf font file installed you should be able to do this:

$ xlsfonts | grep -i tahoma

which should show several lines of font definitions for Tahoma that X (and your X apps) should know about:

Code: Select all

-microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-adobe-standard
-microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso10646-1
-microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-1
-microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-10
-microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-11
-microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-13
-microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-15
-microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-2
-microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-3
-microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-4
-microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-5
-microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-8
-microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-9
-microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-koi8-e
-microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-microsoft-cp1252
-microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-adobe-standard
__snip__


Where do things go awry for you in the above steps?

User avatar
Calum
guru
guru
Posts: 1348
Joined: Fri Jan 10, 2003 11:32 am
Location: Bonny Scotland
Contact:

Post by Calum » Sun Jan 12, 2003 3:10 pm

Code: Select all

[calum@localhost calum]$ cd /usr/X11R6/lib/X11/fonts/TTF/
[calum@localhost TTF]$ ls
abalc.ttf     comic.ttf     gilc____.ttf  luximri.ttf   ngo_____.ttf  trebucbd.ttf
andmoipa.ttf  coprgtb.ttf   gil_____.ttf  luximr.ttf    nwgthcb.ttf   trebucbi.ttf
antquabi.ttf  coprgtl.ttf   gothicbi.ttf  luxirbi.ttf   nwgthci.ttf   trebucit.ttf
antquab.ttf   courbd.ttf    gothicb.ttf   luxirb.ttf    nwgthc.ttf    trebuc.ttf
antquai.ttf   courbi.ttf    gothici.ttf   luxirri.ttf   ocraext.ttf   verdanab.ttf
arialbd.ttf   couri.ttf     gothic.ttf    luxirr.ttf    symbol.ttf    verdanai.ttf
arialbi.ttf   cour.ttf      impact.ttf    luxisbi.ttf   tahomabd.ttf  verdana.ttf
ariali.ttf    ctri____.ttf  lhandw.ttf    luxisb.ttf    tahoma.ttf    verdanaz.ttf
arial.ttf     ctr_____.ttf  lsansi.ttf    luxisri.ttf   tempsitc.ttf  webdings.ttf
ariblk.ttf    fonts.dir     lsansuni.ttf  luxisr.ttf    timesbd.ttf   westm.ttf
bkant.ttf     fonts.scale   lucon.ttf     matisse_.ttf  timesbi.ttf   wingding.ttf
calist.ttf    gilbi___.ttf  luximbi.ttf   ngob____.ttf  timesi.ttf
comicbd.ttf   gilb____.ttf  luximb.ttf    ngoi____.ttf  times.ttf
[calum@localhost TTF]$ xlsfonts | grep -i tahoma
[calum@localhost TTF]$
now as you can see, the fonts are all there, but xlsfonts | grep gives no output whatever. for interest both the files fonts.dir and fonts.scale appear to contain info about all the fonts in the directory, including the gill and arial ones even though thoseare not available to applications such as openoffice.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Sun Jan 12, 2003 3:19 pm

Please read over my previous note again. I believe I added some inforation after you read it that did not get answered (sorry about that). I also wanted an "ls -al" rather than just an "ls". Also give me a snippet out of both your fonts.dir and fonts.scale files. If xlsfonts is not seeing the information in those files then something is wrong and none of your apps will see the fonts. It's likely that the TTF font path needs to be added to the font server configuration and you'll need to add it to your /etc/X11/fs/config file. If this is the case I will update my tip to check for this.

Master of Reality
guru
guru
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

Post by Master of Reality » Mon Jan 13, 2003 11:12 am

there is an app that will add the fonts for you (available in rpm). I saw it somewhere on freshmeat but never tried it.

User avatar
Calum
guru
guru
Posts: 1348
Joined: Fri Jan 10, 2003 11:32 am
Location: Bonny Scotland
Contact:

Post by Calum » Tue Jan 14, 2003 4:32 am

Code: Select all

[calum@localhost calum]$ ls -al /usr/X11R6/lib/X11/fonts/TTF/
total 9412
drwxr-xr-x    2 root     root         4096 Jan 12 13:44 .
drwxr-xr-x   12 root     root         4096 Jan 11 22:32 ..
-rwxr-xr-x    1 root     root        65572 Jan 12 00:00 abalc.ttf
-rwxr-xr-x    1 root     root        29936 Jan 12 00:00 andmoipa.ttf
-rwxr-xr-x    1 root     root       150416 Jan 12 00:00 antquabi.ttf
-rwxr-xr-x    1 root     root       151000 Jan 12 00:00 antquab.ttf
-rwxr-xr-x    1 root     root       149092 Jan 12 00:00 antquai.ttf
-rwxr-xr-x    1 root     root       284560 Jan 12 00:00 arialbd.ttf
-rwxr-xr-x    1 root     root       221756 Jan 12 00:00 arialbi.ttf
-rwxr-xr-x    1 root     root       200684 Jan 12 00:00 ariali.ttf
-rwxr-xr-x    1 root     root       273020 Jan 12 00:00 arial.ttf
-rwxr-xr-x    1 root     root       117028 Jan 12 00:00 ariblk.ttf
-rwxr-xr-x    1 root     root       155528 Jan 12 00:00 bkant.ttf
-rwxr-xr-x    1 root     root        70828 Jan 12 00:00 calist.ttf
-rwxr-xr-x    1 root     root       111476 Jan 12 00:00 comicbd.ttf
-rwxr-xr-x    1 root     root       126364 Jan 12 00:00 comic.ttf
-rwxr-xr-x    1 root     root        56096 Jan 12 00:00 coprgtb.ttf
-rwxr-xr-x    1 root     root        57224 Jan 12 00:00 coprgtl.ttf
-rwxr-xr-x    1 root     root       306688 Jan 12 00:00 courbd.ttf
-rwxr-xr-x    1 root     root       228796 Jan 12 00:00 courbi.ttf
-rwxr-xr-x    1 root     root       238088 Jan 12 00:00 couri.ttf
-rwxr-xr-x    1 root     root       297660 Jan 12 00:00 cour.ttf
-rwxr-xr-x    1 root     root        73416 Jan 12 00:00 ctri____.ttf
-rwxr-xr-x    1 root     root        78056 Jan 12 00:00 ctr_____.ttf
-rw-r--r--    1 root     root        49865 Jan 12 13:44 fonts.dir
-rw-r--r--    1 root     root        49865 Jan 12 13:44 fonts.scale
-rwxr-xr-x    1 root     root        47856 Jan 12 00:00 gilbi___.ttf
-rwxr-xr-x    1 root     root        45476 Jan 12 00:00 gilb____.ttf
-rwxr-xr-x    1 root     root        39932 Jan 12 00:00 gilc____.ttf
-rwxr-xr-x    1 root     root        46068 Jan 12 00:00 gil_____.ttf
-rwxr-xr-x    1 root     root       139084 Jan 12 00:00 gothicbi.ttf
-rwxr-xr-x    1 root     root       129676 Jan 12 00:00 gothicb.ttf
-rwxr-xr-x    1 root     root       148520 Jan 12 00:00 gothici.ttf
-rwxr-xr-x    1 root     root       137568 Jan 12 00:00 gothic.ttf
-rwxr-xr-x    1 root     root       136076 Jan 12 00:00 impact.ttf
-rwxr-xr-x    1 root     root        56560 Jan 12 00:00 lhandw.ttf
-rwxr-xr-x    1 root     root        59636 Jan 12 00:00 lsansi.ttf
-rwxr-xr-x    1 root     root       304932 Jan 12 00:00 lsansuni.ttf
-rwxr-xr-x    1 root     root       115068 Jan 12 00:00 lucon.ttf
-r--r--r--    1 root     root        69872 Sep  6 04:30 luximbi.ttf
-r--r--r--    1 root     root        74076 Sep  6 04:30 luximb.ttf
-r--r--r--    1 root     root        69496 Sep  6 04:30 luximri.ttf
-r--r--r--    1 root     root        71784 Sep  6 04:30 luximr.ttf
-r--r--r--    1 root     root        85756 Sep  6 04:30 luxirbi.ttf
-r--r--r--    1 root     root        87160 Sep  6 04:30 luxirb.ttf
-r--r--r--    1 root     root        86396 Sep  6 04:30 luxirri.ttf
-r--r--r--    1 root     root        88732 Sep  6 04:30 luxirr.ttf
-r--r--r--    1 root     root        65568 Sep  6 04:30 luxisbi.ttf
-r--r--r--    1 root     root        69972 Sep  6 04:30 luxisb.ttf
-r--r--r--    1 root     root        66372 Sep  6 04:30 luxisri.ttf
-r--r--r--    1 root     root        67548 Sep  6 04:30 luxisr.ttf
-rwxr-xr-x    1 root     root        55240 Jan 12 00:00 matisse_.ttf
-rwxr-xr-x    1 root     root        64352 Jan 12 00:00 ngob____.ttf
-rwxr-xr-x    1 root     root        60532 Jan 12 00:00 ngoi____.ttf
-rwxr-xr-x    1 root     root        64132 Jan 12 00:00 ngo_____.ttf
-rwxr-xr-x    1 root     root        66512 Jan 12 00:00 nwgthcb.ttf
-rwxr-xr-x    1 root     root        61280 Jan 12 00:00 nwgthci.ttf
-rwxr-xr-x    1 root     root        66052 Jan 12 00:00 nwgthc.ttf
-rwxr-xr-x    1 root     root        47996 Jan 12 00:00 ocraext.ttf
-rwxr-xr-x    1 root     root        69464 Jan 12 00:00 symbol.ttf
-rwxr-xr-x    1 root     root       243684 Jan 12 00:00 tahomabd.ttf
-rwxr-xr-x    1 root     root       249012 Jan 12 00:00 tahoma.ttf
-rwxr-xr-x    1 root     root        69020 Jan 12 00:00 tempsitc.ttf
-rwxr-xr-x    1 root     root       326072 Jan 12 00:00 timesbd.ttf
-rwxr-xr-x    1 root     root       233892 Jan 12 00:00 timesbi.ttf
-rwxr-xr-x    1 root     root       241972 Jan 12 00:00 timesi.ttf
-rwxr-xr-x    1 root     root       322824 Jan 12 00:00 times.ttf
-rwxr-xr-x    1 root     root        65300 Jan 12 00:00 trebucbd.ttf
-rwxr-xr-x    1 root     root        65296 Jan 12 00:00 trebucbi.ttf
-rwxr-xr-x    1 root     root        71320 Jan 12 00:00 trebucit.ttf
-rwxr-xr-x    1 root     root        65100 Jan 12 00:00 trebuc.ttf
-rwxr-xr-x    1 root     root       136032 Jan 12 00:00 verdanab.ttf
-rwxr-xr-x    1 root     root       154264 Jan 12 00:00 verdanai.ttf
-rwxr-xr-x    1 root     root       139640 Jan 12 00:00 verdana.ttf
-rwxr-xr-x    1 root     root       153324 Jan 12 00:00 verdanaz.ttf
-rwxr-xr-x    1 root     root       118752 Jan 12 00:00 webdings.ttf
-rwxr-xr-x    1 root     root        50312 Jan 12 00:00 westm.ttf
-rwxr-xr-x    1 root     root        81000 Jan 12 00:00 wingding.ttf
[calum@localhost calum]$ /usr/sbin/chkfontpath
Current directories in font path:
1: /usr/X11R6/lib/X11/fonts/misc:unscaled
2: /usr/X11R6/lib/X11/fonts/75dpi:unscaled
3: /usr/X11R6/lib/X11/fonts/100dpi:unscaled
4: /usr/X11R6/lib/X11/fonts/misc
5: /usr/X11R6/lib/X11/fonts/Type1
6: /usr/X11R6/lib/X11/fonts/Speedo
7: /usr/X11R6/lib/X11/fonts/cyrillic
8: /usr/X11R6/lib/X11/fonts/TTF
9: /usr/share/fonts/default/Type1
10:
11: /usr/share/AbiSuite/fonts
12: /usr/lib/openoffice/share/fonts/truetype

excerpt from fonts.dir:
timesi.ttf -monotype-Times New Roman-medium-i-normal--0-0-0-0-p-0-koi8-u
timesi.ttf -monotype-Times New Roman-medium-i-normal--0-0-0-0-p-0-koi8-e
timesi.ttf -monotype-Times New Roman-medium-i-normal--0-0-0-0-p-0-adobe-standard
timesi.ttf -monotype-Times New Roman-medium-i-normal--0-0-0-0-p-0-ibm-cp437
timesi.ttf -monotype-Times New Roman-medium-i-normal--0-0-0-0-p-0-microsoft-cp1252
trebuc.ttf -microsoft-Trebuchet MS-medium-r-normal--0-0-0-0-p-0-iso10646-1
trebuc.ttf -microsoft-Trebuchet MS-medium-r-normal--0-0-0-0-p-0-iso8859-1
trebuc.ttf -microsoft-Trebuchet MS-medium-r-normal--0-0-0-0-p-0-iso8859-2
trebuc.ttf -microsoft-Trebuchet MS-medium-r-normal--0-0-0-0-p-0-iso8859-9
trebuc.ttf -microsoft-Trebuchet MS-medium-r-normal--0-0-0-0-p-0-iso8859-15
trebuc.ttf -microsoft-Trebuchet MS-medium-r-normal--0-0-0-0-p-0-adobe-standard
trebuc.ttf -microsoft-Trebuchet MS-medium-r-normal--0-0-0-0-p-0-microsoft-cp1252
trebucbd.ttf -microsoft-Trebuchet MS-bold-r-normal--0-0-0-0-p-0-iso10646-1

an extract from fonts.scale:
antquai.ttf -monotype-Book Antiqua-medium-i-normal--0-0-0-0-p-0-iso8859-13
antquai.ttf -monotype-Book Antiqua-medium-i-normal--0-0-0-0-p-0-iso8859-15
antquai.ttf -monotype-Book Antiqua-medium-i-normal--0-0-0-0-p-0-koi8-r
antquai.ttf -monotype-Book Antiqua-medium-i-normal--0-0-0-0-p-0-koi8-u
antquai.ttf -monotype-Book Antiqua-medium-i-normal--0-0-0-0-p-0-koi8-e
antquai.ttf -monotype-Book Antiqua-medium-i-normal--0-0-0-0-p-0-adobe-standard
antquai.ttf -monotype-Book Antiqua-medium-i-normal--0-0-0-0-p-0-ibm-cp437
antquai.ttf -monotype-Book Antiqua-medium-i-normal--0-0-0-0-p-0-microsoft-cp1252
arial.ttf -monotype-Arial-medium-r-normal--0-0-0-0-p-0-iso10646-1
arial.ttf -monotype-Arial-medium-r-normal--0-0-0-0-p-0-iso8859-1
arial.ttf -monotype-Arial-medium-r-normal--0-0-0-0-p-0-iso8859-2
arial.ttf -monotype-Arial-medium-r-normal--0-0-0-0-p-0-iso8859-3
arial.ttf -monotype-Arial-medium-r-normal--0-0-0-0-p-0-iso8859-4

i can't figure it out! :?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Tue Jan 14, 2003 5:48 am

Do you have Load "freetype" in Section "Module" in /etc/X11/XF86Config? If not, and adding it fixes the issue then I need to add something else to my tip page. Oh, and do you have "freetype" installed?

Code: Select all

$ rpm -qa | grep freetype
freetype-devel-2.1.2-7
freetype-demos-2.1.2-7
freetype-2.1.2-7
freetype-utils-2.1.2-7

User avatar
Calum
guru
guru
Posts: 1348
Joined: Fri Jan 10, 2003 11:32 am
Location: Bonny Scotland
Contact:

Post by Calum » Tue Jan 14, 2003 10:17 am

Code: Select all

[calum@localhost calum]$ which freetype
/usr/bin/which: no freetype in (/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/calum/bin)
[calum@localhost calum]$ free
free             freecell         freetype-config
[calum@localhost calum]$ freetype-config
Usage: freetype-config [OPTIONS] [LIBRARIES]
Options:
 [--prefix[=DIR]]
 [--exec-prefix[=DIR]]
 [--version]
 [--libs]
 [--libtool]
 [--cflags]
[calum@localhost calum]$ rpm --query freetype
freetype-2.1.2-7
[calum@localhost calum]$ rpm -qa | grep freetype
freetype-2.1.2-7
freetype-devel-2.1.2-7
so i can only presume i do have freetype installed, whatever it is... edit: doesn't look as if i have all the bits you have though, will that be the cause of the difficulty?

hang on while i check my XF86Config...

Code: Select all

Section "Module"
# This loads the DBE extension module.
# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
# This loads the Type1 and FreeType font modules
#    Load       "glx"
        Load  "dbe"     # Double buffer extension
        SubSection "extmod"
                Option      "omit xfree86-dga"   # don't initialise the DGA extens\
ion
        EndSubSection
        Load  "type1"
        Load  "freetype"# This loads the GLX module
EndSection

:( that was in there all along. this XF86Config file is one i made before i reinstalled, i just dropped it in over the old one after the reinstall because anaconda doesn't write a decent XF86Config file for my video card, and i knew this one worked. More relevantly this was the exact XF86Config file i had before i reinstalled which was when the truetype fonts were working perfectly.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Tue Jan 14, 2003 12:47 pm

Well, I just can't figure it. Anyone else that has commented on the tip has said it worked fine. I hope you are just a special case. Sorry but you've got me pretty well stumped.

User avatar
Calum
guru
guru
Posts: 1348
Joined: Fri Jan 10, 2003 11:32 am
Location: Bonny Scotland
Contact:

Post by Calum » Tue Jan 14, 2003 4:59 pm

wow! :shock: that really is a first!
i never thought i would see the day.
well if i ever find out how to make it work or what to change (yeah right) then i will post here.
edit: do i need to uncomment

Code: Select all

#    Load       "glx"
to get this to work:

Code: Select all

Load  "freetype"# This loads the GLX module
?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Tue Jan 14, 2003 5:17 pm

I don't know how that comment "This loads glx" got down on your freetype line but it belongs on the "glx" line. They have nothing to do with each other. Having said that I do use glx but I have an nVidia GeForce card with the nVidia GLX drivers. Am not sure if it will work with your card. It should improve the performance of any GL applications if you can use it, in fact I am not sure but you may not be able to run any GL apps at all without that module loaded. You might also want to look into the DRI module:

http://www.xfree86.org/4.2.0/DRI6.html

Can you run the "glxgears" demo program? Again, this has nothing to do with the fonts...

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Wed Apr 14, 2004 5:42 pm

I just did a fresh install of Fedora today on a dual 1.4Ghz Compaq. I thought I would add the truetype fonts and low and behold my RH8 tip indeed did not seem to work. I did end up getting it to work, at least in Gnome (didn't try anywhere else). All I had to do was open Nautilus (click your home folder icon on your desktop) and type "fonts:" in the location bar. Then I opened another copy of Nautilus and browsed to my TTF font dir and selected all the fonts with my mouse and dragged them over to the other Nautilus window. It appeared to not do anything at all, the fonts didn't immediately show up in Nautilus "fonts:". I restarted X and logged back in and opened Nautilus "fonts:" again and all the TTF fonts I added were there, and they now worked in Mozilla. I don't know if anyone else has tried this. I believe this has to be done on a "per user" basis. I didn't have to do this on any of my other Fedora installs because apparently all of the settings from the previous installation continued to work.

deepeyes
user
user
Posts: 14
Joined: Wed Feb 18, 2004 5:08 pm
Location: Sydney Australia
Contact:

Post by deepeyes » Tue May 25, 2004 6:35 am

Just noticed this one, I have had 3 installs of Fedora 1, several RH 8.0 and 9.0.

RH 8 and 9 worked great.

Fedora 1 has never worked. When I open Nautalis and type font I just get an error. The font directories are as you mentioned in your tutorials.

However I did get it working........

How

Downloaded the lasted version of Mozilla and installed it.......boom.....TTF's in Mozilla WOW!

Dont' know why. Also have installed flash player, I can see it in the plugins page....but no flash?

DE

Post Reply