Improving Fonts

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
User avatar
klhrevolutionist
Posts: 1121
Joined: Wed 08 Jun 2005, 10:09

Improving Fonts

#1 Post by klhrevolutionist »

Code: Select all

leafpad /etc/fonts/fonts.conf

Paste this:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<test compare="more" name="pixelsize" qual="any">
<double>12</double>
</test>
<edit name="autohint" mode="assign" >
<bool>true</bool>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Bitstream Vera Sans</string>
</test>
<edit name="family" mode="assign">
<string>Arial</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Helvetica</string>
</test>
<edit name="family" mode="assign">
<string>Arial</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Palatino</string>
</test>
<edit name="family" mode="assign">
<string>Georgia</string>
</edit>
</match>
</fontconfig> 
Substitute with sans or other font as desired.

Code: Select all

Step 2: gtkrc.mine
Create gtkrc.mine in /root or /home

Paste this:
style "user-font"
{
fontset="Sans-12"
}
widget_class "*" style "user-font"
Substitute with sans or other font as desired.
Heaven is on the way, until then let's get the truth out!

User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

#2 Post by Sit Heel Speak »

If someone could program-up a way to reliably autosense the monitor's true physical dpi before the X server starts...and poke that value into five specific files...

...then, with only moderate user effort required (i.e. one file downloaded, unpacked, and installed, with two symlinks created), and at the cost of between 6 and 15 MB of extra occupied space in the pup_save.2fs file (depending on whether the Microsoft core web fonts are already present on the machine)...

...if both of the above wishes were granted...

...then I can supply replacements for /etc/fonts/fonts.conf and /etc/fonts/local.conf which will give Puppy+Seamonkey the best fonting on the planet.

User avatar
klhrevolutionist
Posts: 1121
Joined: Wed 08 Jun 2005, 10:09

#3 Post by klhrevolutionist »

Using Puppy 109 I did the following to get better fonts, note I did not install any extra fonts but replied upon the default.

1. I edited /root/.Xresources replaced the default config to this

Code: Select all

 
*font: Sans-12

Xft.dpi: 81.5
2. I did this Click Here

This will greatly improve the font display.
Heaven is on the way, until then let's get the truth out!

User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

#4 Post by Sit Heel Speak »

Interesting. /root/.Xresources is indeed one of the five files, adding an Xft.dpi line in it in the manner you show, but I did not know that fractional values for dpi are accepted. Are you sure?

The link must be a mistake, it points back to this thread.

User avatar
klhrevolutionist
Posts: 1121
Joined: Wed 08 Jun 2005, 10:09

#5 Post by klhrevolutionist »

Yes I linked back to my first post for those who wanted to see the first posts tricks.

If someone test this out on puppy-2.xxx we will know if this also improves the fonts with those releases.
Heaven is on the way, until then let's get the truth out!

Post Reply