LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2005, 08:42 PM   #1
anand78
LQ Newbie
 
Registered: May 2005
Posts: 8

Rep: Reputation: 0
Great fonts


I would like to share information on how to get better fonts on RHEL 4 for AMD64. This guide can be used for i386 too. First things first



1. Get Microsft core fonts from http://corefonts.sourceforge.net. Download and install cabextract if you don't have it already installed.

2. Download the msttcorefonts spec file and build a rpm file by issuing this at command prompt. rpmbuild -bb msttcorefonts-----.spec

3. Depending on your architecture you will have a rpm built in the directory /usr/src/redhat/RPMS/x86_64.



Next in line is getting Byte Code turned on



1. The harder way first get hold of the freetype src rpm from here



http://astro.temple.edu/~anandp/Font....1.9-1.src.rpm



install it using rpm -ivh freetype-2.1.9-1.src.rpm



2. change your directory to file:/usr/src/redhat/SPECS



edit the freetype.spec file usign your favourite editor



the 3rd line should read



%define without_bytecode_interpreter 0



3. Save changes and build an rpm using rpmbuild -bb freetype.spec after some time you will have BCI enabled rpm files.



4. The trick with x64 architecture is that you have to compile for both the i386 as well x86_64 to get better looking fonts for both i386 and x86_64 freetype rpm files. It can be done by issuing the rpmbuild command using --target=XXXXX command.



5. People looking for a shortcut I have readymade files here

http://astro.temple.edu/~anandp/Fonts/



6. Depending on how you get the rpm file you have to get rid of the bci enabled freetype using the command "rpm -e --nodeps --allmatches freetype freetype-devel"



7. install the new freetype with BCI enabled using the command rpm -ivh freetype*



8. Assuming you have Microsoft fonts and Byte Code enabled Freetype installed go to control center and choose your favourite truetype font my choice is Tahoma and Verdana.



9. Choose use antialiasing for fonts and exclude range between 0 - 12 points choose Full hinting.



Apply and Save and restart X and viola you will see a marked difference.



But hey I am coming to the real deal , I am not done yet copy and paste this text into your /etc/fonts/local.conf



"

<match target="font">

<test name="weight" compare="more"><const>demibold</const></test>

<edit name="antialias"><bool>true</bool></edit>

</match>

<match target="font">

<test name="slant" compare="eq"><const>italic</const></test>

<edit name="antialias"><bool>true</bool></edit>

</match>

"



between <fontconfig> and </fontconfig>



what these lines do is they use antialiasing for Bold and Italic fonts.

Try changing the usechrome.css and usercontent.css files in Firefox to further improve your experience.
 
Old 05-13-2005, 01:08 PM   #2
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
i think you should be able to find a rpm for redhat or fedora which works.
 
  


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
Fonts question: how to get a full list of fonts in Abiword vharishankar Linux - Software 1 03-17-2005 11:11 AM
Firefox fonts look awful for user, great for root. Raoul_Duke_M Slackware 8 10-01-2004 05:55 PM
fonts.scale/fonts.dir: Naming convention kaon Linux - General 0 08-09-2004 05:02 AM
Fonts not configured in fonts.o/kernel compile gizmogadgetus Linux - General 0 02-08-2004 10:50 AM
Any way to convert ttf fonts to linux console fonts? Glockage Linux - Software 7 12-30-2002 06:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:32 PM.

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