Firefox Font Frustrations (Solved)

Using applications, configuring, problems
Post Reply
Message
Author
bones01
Posts: 371
Joined: Mon 11 Aug 2008, 07:47
Location: Melbourne, Aus

Firefox Font Frustrations (Solved)

#1 Post by bones01 »

Hi all,

I've had this problem with a few versions of Puppy, but now the time has come to try and find an explanation. In the images below, you'll see the differences in the fonts on Firefox in 5.2.0 and 5.2.8 My question is, why do the fonts look better in 520? I have checked the preferences in Firefox on both puppies and they match, but obviously 520 is better - particularly on my favourite Forum page.

Is this a Puppy issue or a Firefox issue? Any help would be appreciated.

I'm using Firefox 7.01. I've installed the recommended NVidia driver. I've checked the font files that I can.

Thanks.

Bones
Last edited by bones01 on Fri 21 Oct 2011, 04:11, edited 1 time in total.
Dell Latitude D630 running Puppy 5.2.8 frugal, Macpup 525 frugal (if I can get it working again. Sadly, I couldn't get it fixed :? )
Precise Puppy 5.4 live DVD
Precise 5.7.3 on USB

User avatar
Iguleder
Posts: 2026
Joined: Tue 11 Aug 2009, 09:36
Location: Israel, somewhere in the beautiful desert
Contact:

#2 Post by Iguleder »

It's /etc/fonts/local.conf and /etc/fonts/fonts.conf. Copy both from Macpup to Lupu to work around this problem.

I had to edit /etc/fonts/local.conf (or fonts.conf, I don't remember which one exactly) and uncomment the section that disables bitmap fonts to get nice fonts in Firefox and Seamonkey.
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#3 Post by 01micko »

Code: Select all

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file for local customizations -->
<fontconfig>
<!--  Enable sub-pixel rendering -->
	<match target="font">
		<test qual="all" name="rgba">
			<const>unknown</const>
		</test>
		<edit name="rgba" mode="assign"><const>rgb</const></edit>
	</match>

<!-- suggested by 'upnorth' http://murga-linux.com/puppy/viewtopic.php?t=54294&start=15
 Reject bitmap fonts -->
 <selectfont>
  <rejectfont>
   <pattern>
     <patelt name="scalable"><bool>false</bool></patelt>
   </pattern>
  </rejectfont>
 </selectfont> 
</fontconfig>
That's Iguleder's ....in Slacko (and Spup)

/etc/fonts/local.conf

bewdiful!
Attachments
fonts.png
Slacko RC, Seamonkey-2.4.1, pfix=ram :)
(147.31 KiB) Downloaded 772 times
Puppy Linux Blog - contact me for access

User avatar
Burn_IT
Posts: 3650
Joined: Sat 12 Aug 2006, 19:25
Location: Tamworth UK

#4 Post by Burn_IT »

I keep a directory with the Microsoft core fonts in it and Symlink to it.

A search of the forum will throw up how to do it.
"Just think of it as leaving early to avoid the rush" - T Pratchett

bones01
Posts: 371
Joined: Mon 11 Aug 2008, 07:47
Location: Melbourne, Aus

#5 Post by bones01 »

01micko wrote:

Code: Select all

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file for local customizations -->
<fontconfig>
<!--  Enable sub-pixel rendering -->
	<match target="font">
		<test qual="all" name="rgba">
			<const>unknown</const>
		</test>
		<edit name="rgba" mode="assign"><const>rgb</const></edit>
	</match>

<!-- suggested by 'upnorth' http://murga-linux.com/puppy/viewtopic.php?t=54294&start=15
 Reject bitmap fonts -->
 <selectfont>
  <rejectfont>
   <pattern>
     <patelt name="scalable"><bool>false</bool></patelt>
   </pattern>
  </rejectfont>
 </selectfont> 
</fontconfig>
That's Iguleder's ....in Slacko (and Spup)

/etc/fonts/local.conf

bewdiful!
Micko, I compared my local.conf with the one you posted and found a couple of differences. I had a few more <--- ---> than this. So I deleted them, and voila, all is great.

I love the help and clear advice I get on this forum from people who know.

Thanks Micko, Iguleder & Burn_IT for your help with this.

Bones.
Dell Latitude D630 running Puppy 5.2.8 frugal, Macpup 525 frugal (if I can get it working again. Sadly, I couldn't get it fixed :? )
Precise Puppy 5.4 live DVD
Precise 5.7.3 on USB

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#6 Post by DaveS »

Yes.. thanks for you work on this Iggy. I copied the entire Slacko /etc/fonts dir over to Racy after deleting the included version to solve a few font issues.
Spup Frugal HD and USB
Root forever!

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#7 Post by darkcity »

this is a really useful tip, does it effect any other programs and puppies?

going to add to wiki 8)

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#8 Post by darkcity »

http://puppylinux.org/wikka/ImproveFontRendering

done - i've added a link for Opera font config - don't know if this is any different?

bones01
Posts: 371
Joined: Mon 11 Aug 2008, 07:47
Location: Melbourne, Aus

This still works

#9 Post by bones01 »

I'm trying Precise 5.4 and had the same problem with fonts. Looked up my own name as I knew I'd asked the question before. Glad the solution still works. :D

User avatar
miriam
Posts: 373
Joined: Wed 06 Dec 2006, 23:46
Location: Queensland, Australia
Contact:

#10 Post by miriam »

I just found this old thread because I had problems with Puppy Slacko 632 losing the ability to smooth and hint fonts after I installed a few programs... well, a heap of programs, so I don't know which messed it up. However this thread put me onto the answer as I noticed that /etc/fonts/conf.avail/50-user.conf mentions:

Code: Select all

	    Load per-user customization files where stored on XDG Base Directory
	    specification compliant places. it should be usually:
	      $HOME/.config/fontconfig/conf.d
	      $HOME/.config/fontconfig/fonts.conf
so I copied the /etc/fonts/conf.avail folder as ~/.config/fontconfig/conf.d and /etc/fonts/fonts.conf as ~/.config/fontconfig/fonts.conf then I restarted X and ta-da! nice, smoothed, hinted fonts again. Yay!

I hope this helps someone else who has a similar head-scratching moment too.
[color=blue]A life! Cool! Where can I download one of those from?[/color]

Post Reply