Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 22 Aug 2014, 19:39
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to have better/windows fonts in puppy
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
bombayrockers


Joined: 24 Sep 2005
Posts: 427
Location: Mumbai, India

PostPosted: 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.

install the following packages
1. freetype-6.3.8.pup from http://www.murga.org/~puppy/viewtopic.php?t=4672&start=0&postdays=0&postorder=asc&highlight=freetype
2. bitstream vera fonts.pup from
http://www.murga.org/~puppy/viewtopic.php?t=4671&start=0&postdays=0&postorder=asc&highlight=bistream

goto /root/.fonts and run the following commands
Code:

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:

# 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
Code:

# 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:

# 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.
fontdoc.tar.gz
Description 
gz

 Download 
Filename  fontdoc.tar.gz 
Filesize  181.93 KB 
Downloaded  340 Time(s) 
Back to top
View user's profile Send private message Yahoo Messenger 
bombayrockers


Joined: 24 Sep 2005
Posts: 427
Location: Mumbai, India

PostPosted: Tue 10 Jan 2006, 03:48    Post subject:  

...
Back to top
View user's profile Send private message Yahoo Messenger 
bombayrockers


Joined: 24 Sep 2005
Posts: 427
Location: Mumbai, India

PostPosted: Tue 10 Jan 2006, 03:49    Post subject:  

...
Back to top
View user's profile Send private message Yahoo Messenger 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0555s ][ Queries: 13 (0.0039s) ][ GZIP on ]