Getting error while installing TrueType fonts.

Place to discuss Fedora and/or Red Hat

Getting error while installing TrueType fonts.

Postby topsoill » Sun Apr 13, 2003 10:30 pm

Trying to use voids method on the this website to install ttf fonts. But get the following:

[root@localhost Fonts]# cd /usr/X11R6/lib/X11/fonts/TTF/
[root@localhost TTF]# cp -v /mnt/windowsc/WINDOWS/Fonts/*.ttf
cp: copying multiple files, but last argument `/mnt/windowsc/WINDOWS/Fonts/wingding.ttf' is not a directory
Try `cp --help' for more information.


Sorry, i am a little new at this. Any ideas?

Using RH 9, Windows xp pro (NTFS mounted in read mode).

Thanks.
topsoill
user
user
 
Posts: 33
Joined: Sun Apr 13, 2003 10:25 pm

Postby Calum » Mon Apr 14, 2003 1:35 am

that's an odd one, but if it is copying all the other files then it should work for all your fonts except for "wingdings", so unless you want to use wingdings in linux then you're (probably) sorted.
User avatar
Calum
guru
guru
 
Posts: 1343
Joined: Fri Jan 10, 2003 11:32 am
Location: Bonny Scotland

Postby Void Main » Mon Apr 14, 2003 8:02 am

Doesn't look like what I have in my instructions. I have no "-v" (not that that matters) but the important part that you are missing from my instructions is the last argument ".". "." is the current directory. When copying multiple files the last argument must be a directory. "." is a directory, the one you are currently cd'ed to.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby topsoill » Mon Apr 14, 2003 9:47 am

Thanks, got that to work. But, now i get this when doing 'mkfontscale':

[root@localhost TTF]# mkfontscale
Couldn't get family name for ./marlett.ttf
:cry:
topsoill
user
user
 
Posts: 33
Joined: Sun Apr 13, 2003 10:25 pm

Postby Void Main » Mon Apr 14, 2003 9:59 am

I just noticed you said you were using RH9. Wish I had noticed that before. I used a completely different method for installing my TT fonts in RH9. More or less I just followed the directions on this page in the Red Hat 9 reference manual.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Calum » Mon Apr 14, 2003 11:05 am

topsoill wrote:Thanks, got that to work. But, now i get this when doing 'mkfontscale':

[root@localhost TTF]# mkfontscale
Couldn't get family name for ./marlett.ttf
:cry:

strangely i got this error when using red hat 8. i just ignored it because, you know, when all the other fonts are coming through fine, why worry.

incidentally void main, your red hat instructions appear to work fine for slackware 9 also, with the simple difference that there doesn't appear to be a "service" command, not a problem, i just waited till i next booted the computer, also, i had to add the FontPath="unix/:7100" line to XF86Config myself too.

just thought you'd like to know (well even if you didn't, i've posted it now anyway).
User avatar
Calum
guru
guru
 
Posts: 1343
Joined: Fri Jan 10, 2003 11:32 am
Location: Bonny Scotland

Postby Void Main » Mon Apr 14, 2003 11:55 am

Yeah, the error he is getting is specific to one font, however I did not have any luck using the overall method in RH9. This prompted me to look through the online manuals and to my pleasure realized that this was fairly well documented in the manual. At least it worked for me.

Regarding the Slack9, it's good to know that it works there as well and thanks for pointing that out. My guess for the reason that there is no "service" command in Slack would be because it uses a BSD style init rather than SysV style. You would signal the xfs daemon to reload it's config by issuing a "kill -1 PID". SysV style init uses a separate script for each daemon and allows you to pass standard parameters like "start", "stop", "restart", "reload", "status", etc. When you use a "reload" as the parameter it usually will just do a "kill -1 PID" on the process to signal it to reload the configuration file.

WindowsNT* "sort of" copied this with their services and allows you to start/stop/restart a service ("net stop servicename", "net start servicename"). Now in Linux/UNIX using SysV style you do not need the "service" command, you can just run the script directly "/etc/init.d/servicename stop". The "service" command is just a wrapper, in fact it is just a small bash script that does nothing more than call the service script in /etc/init.d. In fact, the "service" command is not part of most SysV systems that I am aware of. Possibly Mandrake and SuSe might use it in addition to Red Hat but I'm not sure. To me it's just a little cleaner than calling the service scripts directly from /etc/init.d, but not much. :)
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby topsoill » Mon Apr 14, 2003 9:56 pm

ok, so i deleted the ttf fonts from the TTF directory and am now using the directions of the link provided by void man. Got through the first instruction, but stuck at the second one:

[root@localhost local]# /usr/sbin/chkfontpath --add /usr/share/fonts/local/
chkfontpath: error opening /usr/share/fonts/local/fonts.dir, unwilling to add path
[root@localhost local]#

??

Thanks.
topsoill
user
user
 
Posts: 33
Joined: Sun Apr 13, 2003 10:25 pm

Postby Doogee » Mon Apr 14, 2003 10:25 pm

hey calum in the xf86config did you delete all the other stuff or just append the xfs daemon line thing or what?
Doogee
administrator
administrator
 
Posts: 261
Joined: Fri Jan 10, 2003 1:40 am

Postby Calum » Tue Apr 15, 2003 1:41 am

doogee, i just appended it.
User avatar
Calum
guru
guru
 
Posts: 1343
Joined: Fri Jan 10, 2003 11:32 am
Location: Bonny Scotland

Postby Doogee » Tue Apr 15, 2003 4:25 am

thanks
Doogee
administrator
administrator
 
Posts: 261
Joined: Fri Jan 10, 2003 1:40 am

Postby topsoill » Tue Apr 15, 2003 8:19 pm

Anyone?

:cry:
topsoill
user
user
 
Posts: 33
Joined: Sun Apr 13, 2003 10:25 pm

Postby Calum » Wed Apr 16, 2003 2:59 am

not me, i cannot answer since i still use red hat 8 and slack 9 and haven't seen that error before.
User avatar
Calum
guru
guru
 
Posts: 1343
Joined: Fri Jan 10, 2003 11:32 am
Location: Bonny Scotland

Postby Void Main » Wed Apr 16, 2003 6:22 am

After creating that directory copy your TTF fonts in there and edit the XFS config file directly and add that directory. The XFS config file is /etc/X11/fs/config. Before restarting XFS run this command:

# ttmkfdir -d /usr/share/fonts/local/ -o /usr/share/fonts/local/fonts.scale

then restart XFS by typing:

# service xfs restart

Now you may need to restart X but I am not sure about that. I recall certain things didn't seem to work until I restarted Xwindows.

Another thing I did was click on my "home" icon on my desktop to bring up nautilus. I typed "fonts:///" in the location box which will bring up your installed fonts. Then I started another Nautilus window and browsed to a directory with TTF files that were not already installed and dragged them from the directory into the installed fonts window.

I am pretty sure that only one of the two procedures above should be necessary but I don't recall which of the two actually got me my TTF fonts (once I got them installed/working I was no longer concerned with how I did it). :)
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby topsoill » Wed Apr 16, 2003 9:24 pm

Thanks void man, that worked. Wow, the fonts look so much better now. What a relief. :)

But i have run into a 'old' problem. After applying the TTF fonts, Phoenix nor mozilla will underline any links while browsing the web. Yes, the underline option is checked in the browser. Its a known bug:

http://bugzilla.mozilla.org/show_bug.cgi?id=195573

Yes, i did submit this problem at ars and you did help me out. But i never actually got to do it:

http://arstechnica.infopop.net/OpenTopi ... 7010956955

So, i am going to give it another shot. This time i am going to use the src.rpm for XFree86.

Here is what i did:

1) Got the XFree.src.rpm file from the source cd's of RH 9.
2) Did rpm -ivh XFree.src.rpm
3) Copied the patch to the /usr/src/redhat/SOURCES directory.

Now, i am stuck at the part where you modify the spec file. I did go into it but there are just too many sections in it which say 'patches'. Some are for video cards some for something else. Where do i put in the instructions for that 'underline' patch? Also, what would the instructions be?

Here is whats inside the patch:

--- xc/lib/font/FreeType/ftfuncs.c~ 2003-02-13 06:01:45.000000000 +0300
+++ xc/lib/font/FreeType/ftfuncs.c 2003-03-04 20:27:16.000000000 +0300
@@ -959,11 +959,11 @@
int underlinePosition, underlineThickness;

if(post) {
- underlinePosition = TRANSFORM_FUNITS_Y(post->underlinePosition);
+ underlinePosition = TRANSFORM_FUNITS_Y(-post->underlinePosition);
underlineThickness = TRANSFORM_FUNITS_Y(post->underlineThickness);
} else {
underlinePosition =
- TRANSFORM_FUNITS_Y(t1info->underline_position);
+ TRANSFORM_FUNITS_Y(-t1info->underline_position);
underlineThickness =
TRANSFORM_FUNITS_Y(t1info->underline_thickness);
}



Thanks.
topsoill
user
user
 
Posts: 33
Joined: Sun Apr 13, 2003 10:25 pm

Next

Return to Fedora/Red Hat

Who is online

Users browsing this forum: No registered users and 1 guest

cron