LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-07-2003, 11:55 PM   #1
Zitan
LQ Newbie
 
Registered: Aug 2003
Location: Kiwiland
Distribution: RH
Posts: 10

Rep: Reputation: 0
Adding a TrueType Font : Redhat ?


Greetings All,

I am working with Redhat 9.0, with the latest stuff for font rendering (glib, gtk, pango, freetype, etc...).

To add TrueType fonts I copy them into my xfree dir::
> /usr/X11R6/lib/X11/fonts/TTF

Recompile fonts:
> ttmkfdir -o fonts.scale
> mkfontdir

Restart xfs :
> /etc/rc.d/init.d/xfs restart

And then check this worked with xlsfonts. All good? Well yes previously. I just dumped some new fonts in, ran through the steps, but hold on when I run xlsfonts I get back this result::
xlsfonts: pattern "*" unmatched

Why? What does it mean? What have I done wrong? Is it an error in one of the font files ?/

Any help is greatly appreciate

G.
 
Old 08-08-2003, 01:08 AM   #2
Zitan
LQ Newbie
 
Registered: Aug 2003
Location: Kiwiland
Distribution: RH
Posts: 10

Original Poster
Rep: Reputation: 0
My guess is that ttmkfdir cannot handle ttf files in CAPS or ones that previously existed in CAPS?

Any thoughts ???

Thanks,
Z.
 
Old 08-08-2003, 01:29 AM   #3
Zitan
LQ Newbie
 
Registered: Aug 2003
Location: Kiwiland
Distribution: RH
Posts: 10

Original Poster
Rep: Reputation: 0
http://www.tldp.org/HOWTO/FDU/truetype.html

I guess this is what they call a batch file ... or it is a c script ?

Yeah how did you guess ?

Quote:
There is still more work to be done before we can actually use any TrueType fonts. First, all font files must have lower case names. Secondly, they shouldn't have embedded spaces. And then, we will need to create a couple of configuration files to make things go.

Su to root, and change to the directory where the TrueType fonts are.

# su -
# cd /usr/local/share/fonts/ttfonts

If there are any upper case font names, you can use the following script to convert all names to lower case:

#!/bin/sh
#
## -------- convert upper to lower case ---------

ls * | while read f
do
if [ -f $f ]; then
if [ "$f" != "`echo \"$f\" | tr A-Z a-z`" ]; then
#Note that 'This' will overwrite 'this'!
mv -iv "$f" "`echo \"$f\" | tr A-Z a-z`"
fi
fi
done

## eof
 
Old 08-08-2003, 01:37 AM   #4
Zitan
LQ Newbie
 
Registered: Aug 2003
Location: Kiwiland
Distribution: RH
Posts: 10

Original Poster
Rep: Reputation: 0
Ahaaaa ::: AWESOME

[root@linuxdev test]# ls
BAUHAUSH.TTF covertupperfonts FUTURAXK.TTF
BROADW.TTF FUTURAK.TTF PSTRBODN.TTF
[root@linuxdev test]# covertupperfonts
[root@linuxdev test]# ./covertupperfonts
`BAUHAUSH.TTF' -> `bauhaush.ttf'
`BROADW.TTF' -> `broadw.ttf'
`FUTURAK.TTF' -> `futurak.ttf'
`FUTURAXK.TTF' -> `futuraxk.ttf'
`PSTRBODN.TTF' -> `pstrbodn.ttf'
[root@linuxdev test]# ls
bauhaush.ttf covertupperfonts futuraxk.ttf
broadw.ttf futurak.ttf pstrbodn.ttf
[root@linuxdev test]#
 
Old 08-08-2003, 01:41 AM   #5
Zitan
LQ Newbie
 
Registered: Aug 2003
Location: Kiwiland
Distribution: RH
Posts: 10

Original Poster
Rep: Reputation: 0
Crap ::

[root@linuxdev TTF]# xlsfonts > /home/zitan/fonts
xlsfonts: pattern "*" unmatched

grrrr ...
 
Old 08-08-2003, 01:48 AM   #6
Zitan
LQ Newbie
 
Registered: Aug 2003
Location: Kiwiland
Distribution: RH
Posts: 10

Original Poster
Rep: Reputation: 0
K Full Circle:

If a TTF font started in CAPS, even you if change the name (I guess that is all that script does!) that system still cannot understand it....

Any comments on this ??

Thanx, Z.
 
Old 08-10-2003, 05:44 PM   #7
Zitan
LQ Newbie
 
Registered: Aug 2003
Location: Kiwiland
Distribution: RH
Posts: 10

Original Poster
Rep: Reputation: 0
No suggestions?? Nobody else has run into this problem or something similar before when adding TrueType fonts?

Just wonedering ... thanx ...
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
openoffice buggers truetype font server xfftt? remsense Debian 2 10-06-2005 10:51 AM
Ugly Truetype font in GTK apps kvzrock Linux - General 0 02-08-2004 11:35 PM
Wide font-spacing of TrueType fonts Romendo Fedora 2 11-13-2003 05:58 AM
TrueType Font Display and long font names jdeka Slackware 0 06-28-2003 04:04 AM
Mandrake 9.1 Truetype font question stodge Linux - Distributions 2 05-16-2003 01:44 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration