[Conky] Taille max. de la police (Résolu)

Applications, problèmes de configuration réseau
xenom
archer
Messages : 100
Inscription : dim. 23 mars 2008, 18:50
Localisation : Nancy

[Conky] Taille max. de la police (Résolu)

Message par xenom »

Bonjour.

Je viens d'installer conky sur un nouveau PC, et je n'arrive pas à mettre une taille de police superieure à 20.

Entre 0 et 20 c'est bon, mais si je dépasse cela ne marche pas, la taille reste comme à 20.

Le conky.rc:

Code : Tout sélectionner

#background no

out_to_console no
use_xft yes
update_interval 1

own_window no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_type normal
own_window_transparent yes

double_buffer yes

draw_shades no
draw_outline no
draw_borders no

default_color white
default_shade_color white
default_outline_color white

gap_x 13
gap_y 34
alignment bottom_left

use_spacer none

color0 FFFFFF
color1 2E2920

#xftfont arial:size=50

TEXT
${color0}${font Utopia:size=20}${time %H:%M}
${color0}${font Utopia:size=20}${time %a %d %b}
J'ai essayé plusieurs polices sans résultats.

Mon ecran est en 1920*1080 avec un dpi de 150.
Dernière modification par xenom le mer. 06 juil. 2011, 21:40, modifié 1 fois.
xenom
archer
Messages : 100
Inscription : dim. 23 mars 2008, 18:50
Localisation : Nancy

Re: [Conky] Taille max. de la police

Message par xenom »

Un petit up, car je n'ai toujours pas trouvé de solution.
Avatar de l’utilisateur
Arcanexil
Hankyu
Messages : 45
Inscription : dim. 27 févr. 2011, 18:34

Re: [Conky] Taille max. de la police

Message par Arcanexil »

#xftfont arial:size=50

TEXT
${color0}${font Utopia:size=20}${time %H:%M}
${color0}${font Utopia:size=20}${time %a %d %b}
J'aurais pas fait comme ça.
Plutôt dans le genre
# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Utopia

# Text alpha when using Xft
xftalpha 0.8

TEXT
${color black}${font Utopia:size=20}${time %H:%M}
${color black}${font Utopia:size=20}${time %a %d %b}
mwé.... bon ça change pas grand chose ...
T'as essayé de testé ta font dans un traitement de txt en size 20+ ?

EDIT :

Cela dit, en essayant un peu de mon coté ça donne pas grand résultats nonplus
Mais j'ai testé avec mon conky :
Image
En haut c'est la première partie de mon conky que j'ai laissée
Et séparé par un trait, ton code. Bon j'ai pas ta font alors j'ai mi arial. Je peux test avec ta font ! tu l'as dans un coin ?

Voila le code :

Code : Tout sélectionner

# set to yes if you want Conky to be forked in the background, set to no if you want test.
background yes


cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
font 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

# text_buffer_size 2048
override_utf8_locale yes

# Xft font when Xft is enabled
xftfont monospace-8

# Text alpha when using Xft
xftalpha 0.8

# on_bottom yes

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 5 5
maximum_width 500

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 10

# border width
border_width 2

# Default colors and also border colors
default_color white
#default_shade_color white
#default_outline_color white
own_window_colour white

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text

gap_x 20
gap_y 40

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer right

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

TEXT
${color white}[${color red}$nodename${color white}] -
${color #888888}$sysname $kernel ${color #CCCCCC}on ${color #888888}$machine
${color #888888}Uptime: $uptime
${color #888888}${time %b/%a/%d}                  ${color #00ff00}${time %k:%M:%S}
${color white}${hr 1}
${color black}${font arial:size=20}${time %H:%M}
${color black}${font arial:size=20}${time %a %d %b}
Arch + Openbox / XUbuntu 10.04 LTS ... and WinXP for COD4 mod paintball :P
xenom
archer
Messages : 100
Inscription : dim. 23 mars 2008, 18:50
Localisation : Nancy

Re: [Conky] Taille max. de la police

Message par xenom »

Merci, j'ai réussi à trouver la cause du problème.

Effectivement c'est bien la police elle même qui pose problème.

J'avais le même problème en testant avec arial (d'ou la ligne commentée), mais arial n’était pas installée :oops: , conky devait donc reprendre la police par défaut.

Avec Monospace par exemple ça fonctionne correctement. C'est la font Utopia qui pose problème, même dans Geany elle ne dépasse 20. Vu que je ne veux pas spécialement l'utiliser, problème résolu.
Répondre