You are not logged in.

#1 2009-08-06 16:09:59

ech0s7
Member
Registered: 2008-02-13
Posts: 18

Firefox 3.5 and Hinting

Hi, anyone know how to enable hinting for fonts in firefox 3.5 ? (in firefox 3.0 i had no problem)  The hinting not being taken from gnome font preferences.

This is a screenshoot with a difference of fonts between firefox and thunderbird (for example): http://www.ech0s7.netsons.org/private/f … nting_.bmp

this is $ ~/.fonts.conf

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match target="font" >
    <edit mode="assign" name="rgba" >
      <const>rgb</const>
    </edit>
  </match>
  <match target="font" >
    <edit mode="assign" name="hinting" >
      <bool>true</bool>
    </edit>
  </match>
  <match target="font" >
    <edit mode="assign" name="hintstyle" >
      <const>hintfull</const>
    </edit>
  </match>
  <match target="font" >
    <edit mode="assign" name="antialias" >
      <bool>true</bool>
    </edit>
  </match>
  <match target="font">
    <edit mode="assign" name="lcdfilter">
      <const>lcddefault</const>
    </edit>
  </match>
</fontconfig>

and $ ls /etc/fonts/conf.d

totale 12K
drwxr-xr-x 2 root root 4,0K  6 ago 17:40 .
drwxr-xr-x 4 root root 4,0K  2 lug 19:31 ..
lrwxrwxrwx 1 root root   31  5 giu 15:01 10-antialias.conf -> ../conf.avail/10-antialias.conf
lrwxrwxrwx 1 root root   38  5 giu 15:01 10-autohint.conf -> /etc/fonts/conf.avail/10-autohint.conf
lrwxrwxrwx 1 root root   36  5 giu 15:01 10-hinting-medium.conf -> ../conf.avail/10-hinting-medium.conf
lrwxrwxrwx 1 root root   29  5 giu 15:01 10-hinting.conf -> ../conf.avail/10-hinting.conf
lrwxrwxrwx 1 root root   34  5 giu 15:01 10-no-sub-pixel.conf -> ../conf.avail/10-no-sub-pixel.conf
lrwxrwxrwx 1 root root   43  5 giu 15:01 11-lcd-filter-lcddefault.conf -> ../conf.avail/11-lcd-filter-lcddefault.conf
lrwxrwxrwx 1 root root   39  5 giu 15:01 20-fix-globaladvance.conf -> ../conf.avail/20-fix-globaladvance.conf
lrwxrwxrwx 1 root root   39  5 giu 15:01 20-unhint-small-vera.conf -> ../conf.avail/20-unhint-small-vera.conf
lrwxrwxrwx 1 root root   42  5 giu 15:01 29-replace-bitmap-fonts.conf -> ../conf.avail/29-replace-bitmap-fonts.conf
lrwxrwxrwx 1 root root   36  5 giu 15:01 30-metric-aliases.conf -> ../conf.avail/30-metric-aliases.conf
lrwxrwxrwx 1 root root   33  5 giu 15:01 30-urw-aliases.conf -> ../conf.avail/30-urw-aliases.conf
lrwxrwxrwx 1 root root   30  5 giu 15:01 40-nonlatin.conf -> ../conf.avail/40-nonlatin.conf
lrwxrwxrwx 1 root root   27  5 giu 15:01 45-latin.conf -> ../conf.avail/45-latin.conf
lrwxrwxrwx 1 root root   31  5 giu 15:01 49-sansserif.conf -> ../conf.avail/49-sansserif.conf
lrwxrwxrwx 1 root root   26  5 giu 15:01 50-user.conf -> ../conf.avail/50-user.conf
lrwxrwxrwx 1 root root   27  5 giu 15:01 51-local.conf -> ../conf.avail/51-local.conf
lrwxrwxrwx 1 root root   42  5 giu 15:01 53-monospace-lcd-filter.conf -> ../conf.avail/53-monospace-lcd-filter.conf
lrwxrwxrwx 1 root root   27  5 giu 15:01 60-latin.conf -> ../conf.avail/60-latin.conf
lrwxrwxrwx 1 root root   35  5 giu 15:01 65-fonts-persian.conf -> ../conf.avail/65-fonts-persian.conf
lrwxrwxrwx 1 root root   30  5 giu 15:01 65-nonlatin.conf -> ../conf.avail/65-nonlatin.conf
lrwxrwxrwx 1 root root   29  5 giu 15:01 69-unifont.conf -> ../conf.avail/69-unifont.conf
lrwxrwxrwx 1 root root   32  5 giu 15:07 70-no-bitmaps.conf -> ../conf.avail/70-no-bitmaps.conf
lrwxrwxrwx 1 root root   31  5 giu 15:01 80-delicious.conf -> ../conf.avail/80-delicious.conf
lrwxrwxrwx 1 root root   36  8 lug 17:56 85-wqy-bitmapsong.conf -> ../conf.avail/85-wqy-bitmapsong.conf
lrwxrwxrwx 1 root root   31  5 giu 15:01 90-synthetic.conf -> ../conf.avail/90-synthetic.conf
-rw-r--r-- 1 root root  959  2 lug 19:24 README

anyone have same idea to fix, and enable hinting in firefox?

thanks

Last edited by ech0s7 (2009-08-06 16:18:57)

Offline

#2 2009-08-06 16:12:22

Crows
Member
From: Wales
Registered: 2008-09-05
Posts: 92

Re: Firefox 3.5 and Hinting

Try adding this to ~/.Xdefaults (make it if it isn't there).

Xft.hinting = 1
Xft.hintstyle = hintfull

Offline

#3 2009-08-06 16:14:58

ech0s7
Member
Registered: 2008-02-13
Posts: 18

Re: Firefox 3.5 and Hinting

Crows wrote:

Try adding this to ~/.Xdefaults (make it if it isn't there).

Xft.hinting = 1
Xft.hintstyle = hintfull

doesn't fixed sad

Offline

#4 2009-08-06 20:37:30

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: Firefox 3.5 and Hinting

I have the following in /etc/X11/Xresources/sharp-fonts

Xft.antialias:  true
Xft.hinting:    true
Xft.hintstyle:  hintfull
Xft.lcdfilter:  lcddefault
Xft.rgba:       rgb

based on http://johan.kiviniemi.name/blag/ubuntu-fonts/

Last edited by vacant (2009-08-06 20:38:42)

Offline

#5 2009-08-07 02:20:03

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Firefox 3.5 and Hinting

Same weird issue as in this thread?

Offline

#6 2009-08-07 07:09:40

ech0s7
Member
Registered: 2008-02-13
Posts: 18

Re: Firefox 3.5 and Hinting

i have fixed in this way: changing hintstyle from "hintfull" to "hintslight" in ~/.fonts.conf. But now why firefox 3.5 doesn't works with hintfull ? I would hintfull for my system...

Offline

Board footer

Powered by FluxBB