LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-23-2003, 05:45 AM   #1
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
Mozilla Font Problems


I have installed a new system with LFS-5.0 and I can't get fonts working properly with Mozilla. I built it with xft enabled. I have checked this by going to "about:buildconfig" and the option --enable-xft is present. I have freetype 2.1.5 installed and I have installed some windows fonts into the directory: /usr/X11R6/lib/X11/fonts/ttfonts I ran "mkfontscale", "mkfontdir" and a perl script to create font alias. I have edited /usr/lib/mozilla/defaults/pref/unix.js (which is symlinked to /usr/lib/mozilla-1.6b/defaults/pref/unix.js) and changed the relevant parts. It now looks like this:

// TrueType
pref("font.FreeType2.enable", true);
pref("font.freetype2.shared-library", "libfreetype.so.6");

// if libfreetype was built without hinting compiled in
// it is best to leave hinting off
pref("font.FreeType2.autohinted", true);
pref("font.FreeType2.unhinted", false);
// below a certian pixel size anti-aliased fonts produce poor results

pref("font.antialias.min", 10);
pref("font.embedded_bitmaps.max", 1000000);
pref("font.scale.tt_bitmap.dark_text.min", 64);
pref("font.scale.tt_bitmap.dark_text.gain", "0.8");

// sample prefs for TrueType font dirs
pref("font.directory.truetype.1", "/usr/X11R6/lib/X11/fonts/ttfonts");
//pref("font.directory.truetype.2", "/u/sam/tt_font2");
//pref("font.directory.truetype.3", "/u/sam/tt_font3");
pref("font.FreeType2.printing", true);

Yet it does no checking of the font directory on startup, and the new fonts are not available under preferences. Could anyone help?
Guy

edit: all of the fonts are available with xfontsel by the way

Last edited by guygriffiths; 12-23-2003 at 05:51 AM.
 
Old 12-23-2003, 08:55 AM   #2
Zoombie
Member
 
Registered: Jul 2003
Distribution: Debian Testing
Posts: 180

Rep: Reputation: 30
I don't use the Mozilla freetype thing. With XFree86 4.3, you can have this feature across the board. You may need to edit your /etc/fonts/local.conf file:
Code:
<fontconfig>
...
  <dir>/usr/X11R6/lib/X11/fonts/ttfonts</dir>
</fontconfig>
It just needs to contain the directory that has your TrueType fonts. Then run fc-cache, and I think you should be good to go. For more information, check out: http://www.xfree86.org/4.3.0/fonts2.html
 
Old 12-23-2003, 11:18 AM   #3
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Original Poster
Rep: Reputation: 37
Excellent thanks, that worked a treat. If anyone knows what was wrong I'd be interested to know but that worked perfectly
 
Old 12-24-2003, 10:39 AM   #4
Zoombie
Member
 
Registered: Jul 2003
Distribution: Debian Testing
Posts: 180

Rep: Reputation: 30
Quote:
Originally posted by guygriffiths
Excellent thanks, that worked a treat. If anyone knows what was wrong I'd be interested to know but that worked perfectly
I'm not sure what was wrong with FreeType - I've never gotten it to work right myself. The only time I got it working at all, everything was bold, and underline wasn't supported for some reason. But XFT works fine for me. For whatever reason, XFree86 doesn't seem to have any standard TTF directory, so you have to tell XFT wherever you put them.
 
  


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
Font size in Mozilla wlaw Linux - Software 1 06-23-2004 03:10 AM
How can i change this font in Mozilla? Braveheart1980 Linux - Software 2 03-02-2004 03:13 AM
Font problems with Mozilla aclaunch Linux - Software 1 02-10-2004 11:34 AM
Mozilla menu font.. f0rmula Linux - Software 2 12-11-2003 06:42 AM
font settings on mozilla jamaso Linux - General 3 02-24-2002 04:56 PM

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

All times are GMT -5. The time now is 10:13 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