Joined: 24 Sep 2005 Posts: 421 Location: Mumbai, India
Posted: Sat 31 Dec 2005, 07:52 Post_subject:
How to have better/windows fonts in puppy
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.
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:
# 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:
# 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:
# 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:
# 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
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
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
Rules_post_cannot Rules_reply_cannot Rules_edit_cannot Rules_delete_cannot Rules_vote_cannot You cannot attach files in this forum You can download files in this forum