Précédent   Forum des professionnels en informatique > Systèmes > Linux > Applications
Applications Questions sur l'utilisation d'applications, du shell, et des interfaces graphiques (KDE, Gnome, XFCE... )
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 02/02/2011, 15h31   #1
Membre émérite
 
Avatar de Celelibi
 
Inscription : janvier 2004
Messages : 990
Détails du profil
Informations forums :
Inscription : janvier 2004
Messages : 990
Points : 822
Points : 822
Par défaut Polices xorg moches

Bonjour,

Je ne sais pas si ce sujet est dans la bonne section, n'hésitez pas à le déplacer si besoin.

Mon soucis est simple, j'ai installé une debian récemment sur mon laptop du taff et les polices sont toute grosses, toute moches. J'ai essayé d'installer les mêmes packages de polices que sur mon laptop perso, mais rien à faire.

Je mets un screen de chaque machine.
Laptop du taff.


Laptop perso.


Étant donné que la configuration GTK est la même (du moins même ~/.gtkrc-2.0), et que ça ne concerne pas uniquement les menus et boutons GTK mais aussi le contenu des pages web, je pense que c'est un problème avec xorg.

Au démarrage de xorg, j'ai les logs qui disent un truc comme ça :
Citation:
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
Entry deleted from font path.
(WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
Entry deleted from font path.
(==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
built-ins
Exactement le même sur les deux machines.

J'ai aussi fait en sorte d'installer les mêmes packages sur les deux machines pour avoir exactement le même contenu de /usr/share/fonts/X11.

La seule différence, c'est que l'un des deux xorg est en 64 bits, alors que l'autre est en 32.
Je trouve ça assez étrange comme problème. Donc si quelqu'un avait des pistes à explorer, je suis preneur. Par exemple : savoir quelle police est actuellement utilisée, débuguer les différentes étapes qui aboutissent à une police moche ou jolie, etc.


Merci d'avance.
Celelibi
__________________
Les vaches ne peuvent PAS voler, quoi qu'elles aient pu vous raconter.
Celelibi est déconnecté   Envoyer un message privé Réponse avec citation 10
Vieux 18/04/2011, 13h56   #2
Membre Expert
 
Avatar de supersnail
 
Homme
Inscription : novembre 2006
Messages : 1 402
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France

Informations forums :
Inscription : novembre 2006
Messages : 1 402
Points : 1 991
Points : 1 991
Bonjour,

Est-ce que ce serait possible de voir ton gtkrc?
__________________
Toute question technique envoyée en MP ira directement à la poubelle

Un code ne marchera jamais,il n'a jamais reçu la capacité de se déplacer.
Inutile donc de dire "ça marche pas", donnez plûtot des informations précises afin de mieux pouvoir vous aider.


Grand gourou de la -attitude - Sauvons Internet!
supersnail est déconnecté   Envoyer un message privé Réponse avec citation 20
Vieux 28/04/2011, 16h02   #3
Membre émérite
 
Avatar de Celelibi
 
Inscription : janvier 2004
Messages : 990
Détails du profil
Informations forums :
Inscription : janvier 2004
Messages : 990
Points : 822
Points : 822
Code :
1
2
3
4
5
6
# -- THEME AUTO-WRITTEN BY gtk-theme-switch2 DO NOT EDIT
include "/usr/share/themes/Nuvola/gtk-2.0/gtkrc"
 
include "/home/sgault/.gtkrc-2.0.mine"
 
# -- THEME AUTO-WRITTEN BY gtk-theme-switch2 DO NOT EDIT
Le fichier .mine n'existe pas.
Et donc, il ne reste plus que le fichier de style de nuvola, qui est strictement identique entre les deux machines (en tout cas les md5sum sont identiques). Et viennent des packages debian. Mais je le paste au cas où.

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
# Theme Name  : Nuvola
# Author(s)   : ajgenius ala Andrew Johnson (ajgenius_AT_ajgenius.us) 
#               sub_pop_culture ala Link Dupont (link_AT_subpop.net)
# Description :
#
# A smooth blue theme modified from the Smooth-Winter theme, 
# to match the Nuvola icon set
 
gtk-icon-sizes = "panel-menu=32,32"
 
style "default" {
        ######  GTK Style Flags  ###### 
        GtkWidget::interior_focus               = 5
        GtkButton::default_border               = {5, 5, 5, 5}
        GtkButton::default_outside_border       = {5, 5, 5, 5}
 
        GtkCheckButton::indicator_size          = 13
        GtkRadioButton::indicator_size          = 12
 
        GtkPaned::handle_size                   = 10
 
        GtkRange::trough_border                 = 2
        GtkRange::slider_width                  = 13
        GtkRange::stepper_size                  = 13
        GtkRange::stepper_spacing               = 0
 
        ###  Nautilus Specific Style Flags  ###
        NautilusIconContainer::selection_box_alpha      = 64
        NautilusIconContainer::highlight_alpha          = 255
        NautilusIconContainer::light_info_color         = "#FFFFFF"
        NautilusIconContainer::dark_info_color          = "#0B4884"
        NautilusIconContainer::frame_text               = 0
 
        ###### GTK Style Colours ######
        fg[ACTIVE]              = "#000000"
        fg[SELECTED]            = "#FFFFFF"
        fg[NORMAL]              = "#000000"
        fg[PRELIGHT]            = "#FFFFFF"
        fg[INSENSITIVE]         = "#949494"
 
        bg[ACTIVE]              = "#C6C6D2"
        bg[SELECTED]            = "#5B98D4"
        bg[NORMAL]              = "#E9E9F4"
        bg[PRELIGHT]            = "#5B98D4"
        bg[INSENSITIVE]         = "#E1E1EA"
 
        base[ACTIVE]            = "#6BA8E4"
        base[SELECTED]          = "#5B98D4"
        base[NORMAL]            = "#FFFFFF"
        base[PRELIGHT]          = "#E2DEEB"
        base[INSENSITIVE]       = "#DBDBE5"
 
        text[ACTIVE]            = "#FFFFFF"
        text[SELECTED]          = "#FFFFFF"
        text[NORMAL]            = "#000000"
        text[PRELIGHT]          = "#000000"
        text[INSENSITIVE]       = "#949494"
 
        ###### Theme Engine Style ######
        engine "smooth" {
                tab_style       = round
 
                fill {
                        style           = gradient
                        hdirection      = vertical
                        vdirection      = vertical
 
                        color1[SELECTED]        = "#EAF5FF"
                        color2[SELECTED]        = "#166FD5"
                        color1[NORMAL]          = "#F8F8FB"
                        color2[NORMAL]          = "#CDCDDF"
                        color1[PRELIGHT]        = "#EAF5FF"
                        color2[PRELIGHT]        = "#166FD5"
                        color1[INSENSITIVE]     = "#EEEEF3"
                        color2[INSENSITIVE]     = "#C5C5D0"
                }
 
                line {
                        style           = smooth
                        thickness       = 1
                }
 
                grip {
                        style           = dots_out
                        count           = 3
                        spacing         = 2
 
                        fill {
                                style   = solid
                        }
                }
 
                check {
                        style   = clean
                        motif   = FALSE
                }
 
                option {
                        style   = round
                        motif   = FALSE
                }
 
                arrow {
                        style   = cleanice
                        solid   = TRUE
                }
        }
} widget_class "*" style "default"
 
style "toolbar" {
        ###### Theme Engine Style ######
        engine "smooth" {
                fill {
                        style   = solid
                }
 
                line {
                        style           = smooth
                        thickness       = 1
                }
 
                grip {
                        style           = dots_out
                        count           = 3
                        spacing         = 2
 
                        toolbar_overlap = TRUE
                }
        }
}
widget_class "*BonoboDockItem*" style "toolbar"
class "*BonoboDockItem*" style "toolbar"
 
widget_class "*HandleBox*" style "toolbar"
class "*HandleBox*" style "toolbar"
 
widget_class "*Tool*" style "toolbar"
class "*Tool*" style "toolbar"
 
widget_class "*MenuBar*" style "toolbar"
class "*MenuBar*" style "toolbar"
 
style "menuitem" {
        ###### GTK Style Colours ######
        text[NORMAL]            = "#000000"
        text[PRELIGHT]          = "#FFFFFF" 
 
        ###### Theme Engine Style ######
        engine "smooth" {
                fill {
                        style           = gradient
                        hdirection      = vertical
                        vdirection      = vertical
 
                        color1[SELECTED]        = "#EAF5FF"
                        color2[SELECTED]        = "#166FD5"
                        color1[NORMAL]          = "#F8F8FB"
                        color2[NORMAL]          = "#CDCDDF"
                        color1[PRELIGHT]        = "#EAF5FF"
                        color2[PRELIGHT]        = "#166FD5"
                        color1[INSENSITIVE]     = "#EEEEF3"
                        color2[INSENSITIVE]     = "#C5C5D0"
                }
 
                line {
                        style           = smooth
                        thickness       = 1
                }
 
                check {
                        style   = clean
 
                        fill {
                                style   = solid
                        }
 
                        line {
                                style           = none
                                thickness       = 0
                        }
                }
 
                option {
                        style   = round
 
                        fill {
                                style   = solid
                        }
 
                        line {
                                style           = none
                                thickness       = 0
                        }
                }
 
                arrow {
                        style   = cleanice
                        solid   = TRUE
                }
        }
}
widget_class "*MenuItem*" style "menuitem"
class "*MenuItem*" style "menuitem"
 
style "radio_check" {
        ###### GTK Style Colours ######
        base[PRELIGHT]  = "#FFFFFF"
 
        text[ACTIVE]    = "#FFFFFF"
        text[SELECTED]  = "#AFAFAF"
        text[NORMAL]    = "#000000"
        text[PRELIGHT]  = "#5B98D4"
}
widget_class "*RadioButton*" style "radio_check"
widget_class "*CheckButton*" style "radio_check"
 
style "scrollbar" {
        ###### Theme Engine Style ######
        engine "smooth" {
                fill {
                        style           = gradient
                        hdirection      = vertical
                        vdirection      = horizontal
 
                        color1[SELECTED]        = "#EAF5FF"
                        color2[SELECTED]        = "#166FD5"
                        color1[NORMAL]          = "#F8F8FB"
                        color2[NORMAL]          = "#CDCDDF"
                        color1[PRELIGHT]        = "#EAF5FF"
                        color2[PRELIGHT]        = "#166FD5"
                        color1[INSENSITIVE]     = "#EEEEF3"
                        color2[INSENSITIVE]     = "#C5C5D0"
                }
 
                line {
                        style           = smooth
                        thickness       = 0
                }
 
                trough {
                        fill {
                                style   = solid
                        }
                }
 
                grip {
                        style   = none
                }
 
                arrow {
                        style   = cleanice
                        solid   = TRUE
 
                        xpadding        = 1
                        ypadding        = 1
                }
        }
}
widget_class "*Scrollbar*" style "scrollbar"
class "*Scrollbar*" style "scrollbar"
 
style "hscales"  {
        ######  GTK Style Flags  ###### 
        GtkRange::trough_border                 = 0
        GtkRange::slider-width                  = 22
        GtkScale::slider-length                 = 13
 
        ###### GTK Style Colours ######
        bg[SELECTED]            = "#5B98D4"
 
        ###### Theme Engine Style ######
        engine "smooth" {       
                real_sliders    = FALSE
 
                fill {
                        style           = gradient
                        hdirection      = vertical
                        vdirection      = horizontal
 
                        color1[SELECTED]        = "#EAF5FF"
                        color2[SELECTED]        = "#166FD5"
                        color1[NORMAL]          = "#F8F8FB"
                        color2[NORMAL]          = "#CDCDDF"
                        color1[PRELIGHT]        = "#EAF5FF"
                        color2[PRELIGHT]        = "#166FD5"
                        color1[INSENSITIVE]     = "#EEEEF3"
                        color2[INSENSITIVE]     = "#C5C5D0"
                }
 
                line {
                        style           = smooth
                        thickness       = 2
                }
 
                trough {
                        show_value      = TRUE
 
                        xpadding        = 7
                        ypadding        = 1
 
                        fill {
                                style   = solid
                        }
                }
 
                grip {
                        style   = none
                }
        }
}
widget_class "*HScale*" style "hscales"
class "*HScale*" style "hscales"
 
style "vscales"  {
        ######  GTK Style Flags  ###### 
        GtkRange::trough_border                 = 0
        GtkRange::slider-width                  = 22
        GtkScale::slider-length                 = 13
 
        ###### GTK Style Colours ######
        bg[SELECTED]            = "#5B98D4"
 
        ###### Theme Engine Style ######
        engine "smooth" {       
                real_sliders    = FALSE
 
                fill {
                        style           = gradient
                        hdirection      = vertical
                        vdirection      = horizontal
 
                        color1[SELECTED]        = "#EAF5FF"
                        color2[SELECTED]        = "#166FD5"
                        color1[NORMAL]          = "#F8F8FB"
                        color2[NORMAL]          = "#CDCDDF"
                        color1[PRELIGHT]        = "#EAF5FF"
                        color2[PRELIGHT]        = "#166FD5"
                        color1[INSENSITIVE]     = "#EEEEF3"
                        color2[INSENSITIVE]     = "#C5C5D0"
                }
 
                line {
                        style           = smooth
                        thickness       = 2
                }
 
                trough {
                        show_value      = TRUE
 
                        xpadding        = 1
                        ypadding        = 7
 
                        fill {
                                style   = solid
                        }
                }
 
                grip {
                        style   = none
                }
        }
}
widget_class "*VScale*" style "vscales"
class "*VScale*" style "vscales"
 
style "infobar" {
        ######  GTK Style Flags  ###### 
        xthickness              = 2
        ythickness              = 2
 
        ###### Theme Engine Style ######
        engine "smooth" {
                fill {
                        style           = gradient
                        hdirection      = vertical
                        vdirection      = horizontal
 
                        color1[SELECTED]        = "#EAF5FF"
                        color2[SELECTED]        = "#166FD5"
                        color1[NORMAL]          = "#F8F8FB"
                        color2[NORMAL]          = "#CDCDDF"
                        color1[PRELIGHT]        = "#EAF5FF"
                        color1[INSENSITIVE]     = "#EEEEF3"
                        color2[INSENSITIVE]     = "#C5C5D0"
                }
 
                line {
                        style           = smooth
                        thickness       = 2
                }
 
                trough {
                        fill {
                                style   = solid
                        }
                }
        }
}
class "*Progress*" style "infobar"
widget_class "*Progress*" style "infobar"
 
style "metacity-frame"
{
        ###### GTK Style Colours ######
        bg[SELECTED]            = "#99CCFF"
 
        ###### Theme Engine Style ######
        engine "smooth" {
                fill {
                        style           = gradient
                        hdirection      = vertical
                        vdirection      = horizontal
 
                        color1[SELECTED]        = "#EAF5FF"
                        color2[SELECTED]        = "#166FD5"
                        color1[NORMAL]          = "#F8F8FB"
                        color2[NORMAL]          = "#CDCDDF"
                        color1[PRELIGHT]        = "#EAF5FF"
                        color2[PRELIGHT]        = "#166FD5"
                        color1[INSENSITIVE]     = "#EEEEF3"
                        color2[INSENSITIVE]     = "#C5C5D0"
                }
 
                line {
                        style           = smooth
                        thickness       = 2
                }
        }
}
class "MetaFrames" style "metacity-frame"
widget_class "MetaFrames" style "metacity-frame"

Et au passage, j'ai remarqué que les polices sont correctes si je fais du X11 forwarding dans ssh. Ça serait donc plutôt lié à xorg qu'à gtk.
__________________
Les vaches ne peuvent PAS voler, quoi qu'elles aient pu vous raconter.
Celelibi est déconnecté   Envoyer un message privé Réponse avec citation 01
Vieux 03/07/2011, 14h55   #4
Membre émérite
 
Avatar de Celelibi
 
Inscription : janvier 2004
Messages : 990
Détails du profil
Informations forums :
Inscription : janvier 2004
Messages : 990
Points : 822
Points : 822
Finalement, je crois avoir trouvé une piste : le driver graphique.

En effet, sur le laptop du taff j'utilisais le driver nvidia propriétaire, et en passant sur nouveau (qui a fini par marcher) les polices sont normales.

Je n'ai pas la moindre idée du lien entre le "font rendering" et le driver graphique, mais ça semble être la source du bug.
__________________
Les vaches ne peuvent PAS voler, quoi qu'elles aient pu vous raconter.
Celelibi est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 05h37.


 
 
 
 
Partenaires

Hébergement Web