View Single Post

   
  #8 (permalink)  
Old 02-20-2008, 04:43 PM
Liam O'Toole
 
Posts: n/a
Default Re: mozilla/firefox + gtk2 = no fancy fonts

On Fri, 19 May 2006 04:07:49 -0400
Mig21 <no@whe.re> wrote:

> Ron Gibson a écrit :
> > On Thu, 18 May 2006 00:48:33 -0400, Mig21 wrote:
> >
> >> i finally figured out what's going on. the problem is that the
> >> mozilla and firefox that come with slackware refuse to render
> >> non-latin fonts. if you go to a website like http://anekdot.ru/
> >> all you'll see is squares with 4 digits in them

> >
> > Renders perfectly here but see more at bottom...
> >
> >> the same happens with the gtk2 binary packages from mozilla.org

> >
> >> but gtk1 mozilla/seamonkey packages from mozilla.org work much
> >> better. going to http://wikipedia.org/ only 3 languages refuse to
> >> render (as opposed to 15 with gtk2)

> >
> > I don;t think your version of Gimp Tool Kit will make any
> > difference.
> >> is there something i could do to fix this problem? and if the
> >> solution is not very straight-forward, what's the best way to ask
> >> patrick (or someone else) to fix it in the distro?

> >
> > Well you'll need to enable font support and resources first.
> >
> > If you have the support and KDE is set up to handle the fonts check
> > for their availability by opening a konsole - issue...
> >
> > xlsfonts |most
> >
> > That will show you all of the fonts available to X. If that's too
> > much info narrow the output down like so...
> >
> > xlsfonts |grep -i <font in question> |most
> >
> > Now if that comes up empty refer to...
> >
> > /usr/doc/Linux-HOWTOs/Font-HOWTO
> >
> > Do all you can there. If that still leaves you lacking recompile
> > libfreetype and enable the taboo hinting feature. Consider using
> > xfstt as a font server. Use TT fonts and dump some Russian ones in
> > the directory that xfstt serves.
> >
> > If you do all of this ANY font will look darn near perfect.
> >
> > PS: You got Unicode enabled? You should.

>
> it's not clear what the gtk version has to do with it but it's a fact
> that mozilla compiled with gtk1 _works_. which tells me i have the
> right fonts installed.


Between GTK1 and GTK2 there was a major overhaul in the way that fonts
are configured and rendered. That's why the solution proposed by
steelneck is required. (Although I would put the new lines
in /etc/fonts/local.conf. Also, there is no need to restart X.)

>
> thanks for the tips but i don't feel like recompiling freetype or
> going to hunt for fonts on the net. i think this should work out of
> the box or at least be easy to fix.


There's no need to recompile anything. Slackware already supplies a
number of fonts. See here:

http://slackware.it/en/pb/search.php?v=10.2&t=1&q=fonts

Do you really expect Slackware to provide every conceivable font, even
if licensing permitted it?

>
> cheers



--

Liam
Reply With Quote