LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-17-2008, 01:42 AM   #1
wheeliee
Member
 
Registered: Aug 2008
Posts: 47

Rep: Reputation: 15
help needed installing certain ttf fonts on 12.1; kde 3.5


Hello,

Using http://www.vcn.bc.ca/~dugan/setting-up-slackware.html as a guide ("Installing Your New Fonts"), I'm trying to install a certain new font. I've been without success so far, so here are my questions:

1. Is it necessary that the additional ttf fonts (from windows and other places) be placed exclusively in a folder of their own, or is it okay that I have them alongside various other types of fonts as they exist in /usr/local/share/fonts/?

2. I'm trying to install, specifically, this font: http://www.crulp.org/software/locali...Nastaleeq.html (ttf file exists in the zip download).
Ultimately, I want this page: http://www.bbc.co.uk/urdu/ to appear correctly (preferably, in the linked font :-). Right now, the fonts do render.. but poorly. Here's a screenshot - http://www.geocities.com/asdfsdf_sdfasdf/snapshot1.png. As you can see, asides from being not very pretty, the stroking, for some reason, is bold on most characters - and not for a few. Also, some letters are not "connected" as they should be in the script.

From what I've read, I think to install the font, I'm supposed to:
place it in /usr/local/share/fonts/ (with xorg.conf file recognizing this path for ttf fonts.. again, I can change it, if it is that they (ttf fonts) should be placed in a folder of their own),
and pass the following commands:
Code:
su -c '/usr/X11R6/bin/mkfontscale'
su -c '/usr/X11R6/bin/mkfontdir'
su -c '/usr/X11R6/bin/fc-cache -f -v'
Now, assuming that it is properly installed and dandy (and I rather suspect that it isn't at this point), will it be automatically recognized.. and in place of the mediocre font as it appears on the
http://www.bbc.co.uk/urdu/ page for me right now, start appearing? This doesn't really click in my head.. (here's my current line of thought: if a preview a text file in firefox and it appears in a generic font, installing a font and previewing it again, firefox probably wouldn't give the same text rendered in the newly-installed font). How can I have the Nafees Nastaleeq font recognized by my system, is my question.

3. In xterm, in this snapshot: http://www.geocities.com/asdfsdf_sdfasdf/snapshot1.png, I think anti-aliasing isn't doing its job very well (the capital "M" character is a notable example). Is it indeed anti-aliasing that is responsible for the poor rendering (the colored fuzziness around the capital "M" character, for example)? I was thinking so myself.

I'll appreciate any words on this, and if someone thinks I should rtfm, then please do link to one (at the moment, I'm so clueless about dealing with fonts that I can't even decide what would be a good resource for me to learn about them ;-). Thanks very much in advance,
-wheeliee

Last edited by wheeliee; 11-14-2008 at 06:15 PM.
 
Old 10-17-2008, 07:39 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
As root, copy all .ttf fonts in /usr/share/fonts/TTF directory
then:
Code:
cd /usr/share/fonts/TTF
mkfontscale .
mkfontdir .
/usr/X11R6/bin/fc-cache -f
[edit]
for antialiasing, did you read this thread:
Beautiful Fonts in 12.1

Last edited by keefaz; 10-17-2008 at 07:45 AM.
 
Old 10-17-2008, 10:41 AM   #3
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Have a look at your xorg.conf's FontPath entries. I find it easiest to put fonts in one of those, and then they'll be found automatically by X and its applications (after you restart it, of course). If you add them elsewhere, you'd need to add a FontPath line for the custom location. Whether you'd need to create a custom /etc/fonts/local.conf (same format as /etc/fonts/fonts.conf), I can't say for sure, but it can't hurt.

For any additions going somewhere besides /usr/local (which I almost *never* use unless it's temporary), I strongly prefer to make a package. As an example:

Code:
PACKAGE NAME:     site-fonts-MathType-20071030-noarch-1_rlw
COMPRESSED PACKAGE SIZE:     389 K
UNCOMPRESSED PACKAGE SIZE:     750 K
PACKAGE LOCATION: site-fonts-MathType-20071030-noarch-1_rlw.tgz
PACKAGE DESCRIPTION:
site-fonts-MathType: MathType TrueType fonts
site-fonts-MathType:
site-fonts-MathType: This package contains the MathType TrueType fonts
site-fonts-MathType: available from http://www.dessci.com/en/dl/fonts/
site-fonts-MathType:
site-fonts-MathType:
site-fonts-MathType:
site-fonts-MathType:
site-fonts-MathType:
site-fonts-MathType:
site-fonts-MathType:
FILE LIST:
./
install/
install/doinst.sh
install/slack-desc
usr/
usr/share/
usr/share/fonts/
usr/share/fonts/TTF/
usr/share/fonts/TTF/euclid.ttf
usr/share/fonts/TTF/euclidb.ttf
usr/share/fonts/TTF/euclidbi.ttf
usr/share/fonts/TTF/euclidi.ttf
usr/share/fonts/TTF/eucsym.ttf
usr/share/fonts/TTF/eucsymb.ttf
usr/share/fonts/TTF/eucsymbi.ttf
usr/share/fonts/TTF/eucsymi.ttf
usr/share/fonts/TTF/euextra.ttf
usr/share/fonts/TTF/euextrab.ttf
usr/share/fonts/TTF/eufrak.ttf
usr/share/fonts/TTF/eufrakb.ttf
usr/share/fonts/TTF/eumat1.ttf
usr/share/fonts/TTF/eumat1b.ttf
usr/share/fonts/TTF/eumat2.ttf
usr/share/fonts/TTF/eumat2b.ttf
usr/share/fonts/TTF/fences.ttf
usr/share/fonts/TTF/mtextra.ttf
Here's the doinst.sh from that package:
Code:
#!/bin/sh

# Update mkfontscale and mkfontdir:
if [ -x /usr/bin/mkfontdir ]; then
  ( cd /usr/share/fonts/TTF
    mkfontscale .
    mkfontdir .
  )
fi
# Update the X font indexes:
if [ -x /usr/bin/fc-cache ]; then
  /usr/bin/fc-cache -f
fi

Last edited by rworkman; 10-17-2008 at 10:47 AM. Reason: Add doinst.sh ; added some clarification
 
Old 10-24-2008, 02:20 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,224

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Install this font instead:
http://www.bbc.co.uk/urdu/fontinstall/popupwin.shtml

It's what's specified in that site's CSS.

If things still look wrong, try one or both of the following:
  • ensuring that Firefox is set to not override font choices made by the site designers
  • disabling the Freetype bytecode interpreter and using its autohinter instead

Last edited by dugan; 10-24-2008 at 02:41 PM.
 
Old 11-29-2008, 06:36 AM   #5
wheeliee
Member
 
Registered: Aug 2008
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by dugan View Post
Install this font instead:
http://www.bbc.co.uk/urdu/fontinstall/popupwin.shtml

It's what's specified in that site's CSS.

If things still look wrong, try one or both of the following:
  • ensuring that Firefox is set to not override font choices made by the site designers
  • disabling the Freetype bytecode interpreter and using its autohinter instead
Hi dugan, thank you very much for replying, and I'm very sorry that I'm replying after such a long while (school work had been keeping me busy ;\)

In #slackware, I asked about this.. and lots of people put forward screenshots of how http://www.bbc.co.uk/urdu/ appeared for them.. and it appeared as it did for me: incorrectly -- inconsistent stroking, bad connecting of characters, etc. EXCEPT for one person, some guy named BP{k} -- here is his screenshot: http://www.geocities.com/asdfsdf_sdfasdf/urdu.png -- the BBC page appeared correctly for him too, without installing the fonts as explicitly pointed out on the BBC page (and that's been confusing me a little -- however, I'm betting that http://bbc.co.uk/urdu appears correctly for you as well, dugan).

Anyway, later today I'll take a stab at it, (after bothering BK{k} about this as well, hopefully he won't mind).
 
Old 11-29-2008, 07:21 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

I know you have referenced Dugan's guide. I would suggest that you look at 'Beautiful Fonts in 12.1'. Daedra & Dugan have provide an excellent LQ post/guide.

This link and others are available from 'Slackware-Links'. More than just SlackwareŽ links!
 
  


Reply



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
Installing .ttf fonts in ubuntu similani Ubuntu 4 09-02-2007 07:25 PM
Installing ttf fonts usercsr Slackware 4 03-31-2004 07:32 PM
Installing Ttf Fonts In Suse (how-to) Edward78 Linux - General 3 07-24-2003 09:23 AM
installing TTF fonts nautilus_1987 Slackware 5 06-21-2003 07:55 AM
TTF fonts on kde title bars juby Linux - General 1 06-19-2003 03:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:02 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
Open Source Consulting | Domain Registration