1 |
Summary: After following the instructions in the Xorg and fonts wiki |
2 |
the default firefox font is awful (the combination "at" especially). |
3 |
Workaround is simple; should I file a bug or have I erred? |
4 |
|
5 |
Details: |
6 |
|
7 |
I followed basically all the instructions in the Xorg and fonts gentoo |
8 |
wiki (my files are given below) including those for firefox (I don't |
9 |
use thunderbird). The default serif font settings for firefox in the |
10 |
wiki are Bitstream Vera Serif at 16 pixels. With this default font |
11 |
and size many pages look awful. Specifically, the letter "t" seems to |
12 |
be too far left and for sure the combination "at" is partially |
13 |
superimposed. For example, viewing http://cs.nyu.edu/~gottlieb with |
14 |
this font and size is bad. |
15 |
|
16 |
If I change the size to 15 or 17 or change the font to say century |
17 |
schoolbook L (with size 16), the problem disappears. |
18 |
|
19 |
Have I messed up the settings or should I fill a bug? If the latter, |
20 |
where is the appropriate bug site for this? |
21 |
|
22 |
thanks, |
23 |
allan |
24 |
|
25 |
================ /etc/fonts/local.conf ================ |
26 |
|
27 |
<?xml version="1.0"?> |
28 |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> |
29 |
<!-- /etc/fonts/local.conf file for local customizations --> |
30 |
|
31 |
<!-- AJG: Changes by allan following the gentoo wiki --> |
32 |
|
33 |
<fontconfig> |
34 |
|
35 |
<!-- Enable sub-pixel rendering --> |
36 |
<match target="font"> |
37 |
<test qual="all" name="rgba"> |
38 |
<const>unknown</const> |
39 |
</test> |
40 |
<edit name="rgba" mode="assign"><const>rgb</const></edit> |
41 |
</match> |
42 |
|
43 |
|
44 |
<!-- Use the Autohinter --> |
45 |
|
46 |
<match target="font"> |
47 |
<edit name="autohint" mode="assign"><bool>true</bool></edit> |
48 |
</match> |
49 |
|
50 |
<!-- Disable Autohinting for bold fonts --> |
51 |
|
52 |
<match target="font"> |
53 |
<test name="weight" compare="more"> |
54 |
<const>medium</const> |
55 |
</test> |
56 |
<edit name="autohint" mode="assign"><bool>false</bool></edit> |
57 |
</match> |
58 |
|
59 |
<!-- Exclude/Include a range of fonts for Anti Aliasing --> |
60 |
|
61 |
|
62 |
|
63 |
<!-- See wiki for what this is and why it is commented out --> |
64 |
<!-- |
65 |
|
66 |
<match target="font"> |
67 |
<test qual="any" name="size" compare="more"> |
68 |
<double>9</double> |
69 |
</test> |
70 |
<test qual="any" name="size" compare="less"> |
71 |
<double>14</double> |
72 |
</test> |
73 |
<edit name="antialias" mode="assign"> |
74 |
<bool>true</bool> |
75 |
</edit> |
76 |
</match> |
77 |
|
78 |
--> |
79 |
|
80 |
<!-- Use this if you have some fonts in a nonstandard directory --> |
81 |
<!-- |
82 |
|
83 |
<dir>/home/david/extrafonts</dir> |
84 |
|
85 |
--> |
86 |
|
87 |
</fontconfig> |
88 |
|
89 |
<!-- Local Variables: --> |
90 |
<!-- mode: sgml --> |
91 |
<!-- End: --> |
92 |
|
93 |
================ /etc/X11/xorg.conf ================ |
94 |
|
95 |
[snip] |
96 |
|
97 |
# DisplaySize (in mm) important for fonts (so says gentoo font wiki) |
98 |
|
99 |
DisplaySize 409 307 |
100 |
|
101 |
[snip] |
102 |
|
103 |
# Multiple FontPath entries are allowed (which are concatenated together), |
104 |
# as well as specifying multiple comma-separated entries in one FontPath |
105 |
# command (or a combination of both methods) |
106 |
|
107 |
# For XFS, uncomment this and comment the others |
108 |
# FontPath "unix/:-1" |
109 |
FontPath "/usr/share/fonts/misc:unscaled" |
110 |
FontPath "/usr/share/fonts/Type1" |
111 |
FontPath "/usr/share/fonts/TTF" |
112 |
FontPath "/usr/share/fonts/corefonts" |
113 |
FontPath "/usr/share/fonts/freefont" |
114 |
FontPath "/usr/share/fonts/sharefonts" |
115 |
FontPath "/usr/share/fonts/terminus" |
116 |
FontPath "/usr/share/fonts/ttf-bitstream-vera" |
117 |
FontPath "/usr/share/fonts/unifont" |
118 |
FontPath "/usr/share/fonts/75dpi:unscaled" |
119 |
FontPath "/usr/share/fonts/100dpi:unscaled" |
120 |
FontPath "/usr/share/fonts/artwiz" |
121 |
FontPath "/usr/share/fonts/CID/" |
122 |
FontPath "/usr/share/fonts/Speedo/" |
123 |
FontPath "/usr/share/fonts/75dpi/" |
124 |
FontPath "/usr/share/fonts/100dpi/" |
125 |
FontPath "/usr/share/fonts/cyrillic" |
126 |
FontPath "/usr/share/fonts/ukr" |
127 |
FontPath "/usr/share/fonts/local/" |
128 |
|
129 |
# ModulePath can be used to set a search path for the X server modules. |
130 |
# The default path is shown here. |
131 |
|
132 |
# ModulePath "/usr/X11R6/lib/modules" |
133 |
|
134 |
EndSection |
135 |
|
136 |
# ********************************************************************** |
137 |
# Module section -- this is an optional section which is used to specify |
138 |
# which run-time loadable modules to load when the X server starts up. |
139 |
# ********************************************************************** |
140 |
|
141 |
Section "Module" |
142 |
|
143 |
Load "dbe" |
144 |
|
145 |
# Load the glx module we obtained from nvidia |
146 |
Load "glx" |
147 |
|
148 |
# This loads the miscellaneous extensions module, and disables |
149 |
# initialisation of the XFree86-DGA extension within that module. |
150 |
|
151 |
SubSection "extmod" |
152 |
EndSubSection |
153 |
|
154 |
Load "type1" |
155 |
Load "freetype" |
156 |
|
157 |
# Load the synaptics driver from synaptics ebuild. |
158 |
Load "synaptics" |
159 |
|
160 |
EndSection |
161 |
|
162 |
================ ~/.fonts.conf ================ |
163 |
|
164 |
No such file |
165 |
|
166 |
================ # Mozilla User Preferences |
167 |
|
168 |
/* Do not edit this file. |
169 |
* |
170 |
* If you make changes to this file while the browser is running, |
171 |
* the changes will be overwritten when the browser exits. |
172 |
* |
173 |
* To make a manual change to preferences, you can visit the URL about:config |
174 |
* For more information, see http://www.mozilla.org/unix/customizing.html#prefs |
175 |
*/ |
176 |
|
177 |
[snip] |
178 |
|
179 |
user_pref("font.FreeType2.autohinted", true); |
180 |
user_pref("font.FreeType2.enable", true); |
181 |
user_pref("font.antialias.min", 0); |
182 |
user_pref("font.directory.truetype.1", "/usr/share/fonts/ttf-bitstream-vera"); |
183 |
user_pref("font.directory.truetype.2", "/usr/share/fonts/TTF"); |
184 |
user_pref("font.directory.truetype.3", "/usr/share/fonts/corefonts"); |
185 |
user_pref("font.directory.truetype.4", "/usr/share/fonts/freefont"); |
186 |
user_pref("font.name.monospace.x-western", "Bitstream Vera Sans Mono"); |
187 |
user_pref("font.name.sans-serif.x-western", "Bitstream Vera Sans"); |
188 |
user_pref("font.name.serif.x-western", "Bitstream Vera Serif"); |
189 |
user_pref("font.scale.tt_bitmap.dark_text.gain", "0.0"); |
190 |
user_pref("font.scale.tt_bitmap.dark_text.min", 0); |
191 |
|
192 |
[snip] |
193 |
|
194 |
================ about:config default settings ================ |
195 |
|
196 |
font.freetype2.shared-library libfreetype.so.6 |
197 |
font.FreeType2.unhinted true |
198 |
font.embedded_bitmaps.max 1000000 |
199 |
font.FreeType2.printing true |
200 |
-- |
201 |
gentoo-user@g.o mailing list |