How to have better/windows fonts in puppy

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
bombayrockers
Posts: 427
Joined: Sat 24 Sep 2005, 16:47
Location: Mumbai, India
Contact:

How to have better/windows fonts in puppy

#1 Post by bombayrockers »

Image

A poor quality screen shot, but the actual improvement is much better than this. This how to aims to provide uniform bitstream fonts for gtk1 , gtk2 and kde apps.

install the following packages
1. freetype-6.3.8.pup from http://www.murga.org/~puppy/viewtopic.p ... t=freetype
2. bitstream vera fonts.pup from
http://www.murga.org/~puppy/viewtopic.p ... t=bistream

goto /root/.fonts and run the following commands

Code: Select all

mkfontscale /root/.fonts
mkfontdir /root/.fonts/
above utilities are available in 1.0.7. other puppy version users need to install mkfontdir.pup from the wiki.

3. replace /etc/gtk/gtkrc with this code

Code: Select all

# Empty gtkrc for default theme

style "default"
{

# for gtk2...
   font="-bitstream-bitstream vera sans-medium-r-normal-*-*-100-*-*-p-*-iso8859-1"
}

class "GtkWidget" style "default"

4. replace /etc/gtk-2.0/gtkrc with the following code

Code: Select all

# gtkrc default theme

style "default"
{

# for gtk2...
#  font_name="Arial 12"
}

style "user-font"
{
	font_name="Bitstream Vera Sans 11"
}
widget_class "*" style "user-font"
gtk-font-name="Bitstream Vera Sans 11"
class "GtkWidget" style "default"
EDIT: 1.0.7 user use the set global font size util in the control panel menu and set it to 96 dpi

5. to set fonts in kde use kcontrol -> appearance -> fonts -> choose all -> bitstream vera sans size 11. DO NOT use anto aliasing.

6. I have tested this in 1024x768 + Xorg. This will also work in Xvesa but you would still have fonts with jagged edges. size 11 is a bit large in 800x600. So you would have to edit the the font sizes in gtkrc files. Following is an assumption which should work. Not tested.

/etc/gtk/gtkrc

Code: Select all

# Empty gtkrc for default theme

style "default"
{

# for gtk2...
   font="-bitstream-bitstream vera sans-medium-r-normal-*-*-90-*-*-p-*-iso8859-1"
}

class "GtkWidget" style "default"
/etc/gtk-2.0/gtkrc

Code: Select all

# gtkrc default theme

style "default"
{

# for gtk2...
#  font_name="Arial 12"
}

style "user-font"
{
	font_name="Bitstream Vera Sans 11"
}
widget_class "*" style "user-font"
gtk-font-name="Bitstream Vera Sans 11"
class "GtkWidget" style "default"

7. Are fonts in mozilla very large ? I got around the problem by making a new profile. Goto to TOOLS in mozilla and SWITCH PROFILE. create new profile and the menu and toolbar will get synced with other gtk apps. Goto edit -> preferences - > Appearance -> fonts -> change fonts to bitstrean vera sans , monospce font to bitstream vera sans mono. proportional fonts can be changed to sans and sans-serif only. Disable Allow documents to use other fonts.

8. If you run into some trouble let me know. There are a few more things which can be tried.

*EDIT*
How to Have windows like clear fonts in Puppy

Image

1. Follow the instructions given above
2. Mount you windows partition.
3. copy the following fonts from \windows\Fonts on the windows partition to /root/.fonts on the pupxxx file
tahoma.ttf
verdana.ttf
times.ttf
4. use commands mkfontscale and mkfontdir as explained above
5. replace you /etc/gtk/gtkrc file with code from here

Code: Select all

# Empty gtkrc for default theme

style "default"
{

# for gtk2...
       
font="-microsoft-tahoma-medium-r-normal-*-12-*-*-*-p-*-iso8859-1"
}

class "GtkWidget" style "default"

adjust the size (no 12) according to your resolution and dpi. 12 is the size for screen resolution 1024x768 dpi 72
6. replace your /etc/gtk-2.0/gtkrc with this code

Code: Select all

# gtkrc default theme

style "default"
{

# for gtk2...
#  font_name="Arial 12"
}

style "user-font"
{
  font_name="Tahoma 12"
}
widget_class "*" style "user-font"
gtk-font-name="Tahoma 12"
class "GtkWidget" style "default"
adjust the size (no 12) according to your resolution and dpi. 12 is the size for screen resolution 1024x768 dpi 72

7. extract the fontdoc.tar.gz and read how to on configuring konqueror and mozilla fonts.
Attachments
fontdoc.tar.gz
(181.93 KiB) Downloaded 553 times

User avatar
bombayrockers
Posts: 427
Joined: Sat 24 Sep 2005, 16:47
Location: Mumbai, India
Contact:

#2 Post by bombayrockers »

...

User avatar
bombayrockers
Posts: 427
Joined: Sat 24 Sep 2005, 16:47
Location: Mumbai, India
Contact:

#3 Post by bombayrockers »

...

Post Reply