Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gestire i font in gtk2 [risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
teknux
Guru
Guru


Joined: 19 Feb 2003
Posts: 517
Location: Rome, IT

PostPosted: Tue Oct 28, 2003 11:43 am    Post subject: gestire i font in gtk2 [risolto] Reply with quote

salve a tutti,
temo che l'argomento sia già stato trattato, ma da varie ricerche qui sul forum e su google, a patto di aver cercato bene, non ho trovato niente di utile. so tuttavia che qualcuno ha postato ma senza risultati, ergo ci riprovo:

il problema è apparentemente semplice:

da quando ho installato IceWM per provarlo come alternativa a xfce4 (che usa le gtk2, tenere a mente) i font delle applicazioni basate su gtk2 (mozilla, gaim, etc etc) si vedono piccolissimi. sulle apps in gtk1 non ci sono problemi perchè ho *scoperto* su un archivio di qualche ML in rete (google docet) che bastava specificare un font nel file gtkrc.

ho trovato poi una *dritta* su un altro forum che diceva di specificare queste righe nel file .xinitrc:

Code:

xrdb -merge - << EOF
Xft.dpi: 96
Xft.hinting: 1
Xft.hintstyle: hintmedium
EOF


ed in effetti funziona, ma il problema è che poi tutti i fonts delle applicazioni non gtk* (1 o 2) si vedono GIGANTI. non è molto bello a vedersi lo schermo prima in ipovisione e poi per ipovedenti...

basandomi sul fatto che sulle gtkrc posso specificare un font, ho immaginato che funzioni anche con i gtkrc-2. da altre ricerche più selettive su google h trovato che basta inserire questa linea:
Code:

gtk-font-name = "nomefont grandezzainpunti"

tuttavia non funziona affatto 8O

qualcuno ha idea di come poter risolvere?
grazie :)
tek


Last edited by teknux on Tue Oct 28, 2003 12:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
xlyz
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1470
Location: Italy

PostPosted: Tue Oct 28, 2003 12:16 pm    Post subject: Reply with quote

questo è il mio ~/.gtkrc-2.0
Code:
include "/usr/share/themes/Smooth-mine/gtk-2.0/gtkrc"
gtk-font-name="helvetica 11"
Back to top
View user's profile Send private message
teknux
Guru
Guru


Joined: 19 Feb 2003
Posts: 517
Location: Rome, IT

PostPosted: Tue Oct 28, 2003 12:42 pm    Post subject: Reply with quote

è quello che avevo fatto, xlyz... ma non andava...

tuttavia ho appena trovato una soluzione che non è proprio il massimo dell'eleganza e soprattutto centra davvero poco con le GTK2, ma funziona:
tra le theme che ho scaricato, quella di bluecurve aveva dei font molto piccoli, quindi ho pensato di modificare i font come li volevo io, poi mettere le istruzioni XFT che ho postato nel mio post precedente settando i dpi a 96.
a questo punto pare funzioni benone ;)

grazie cmq per l'interessamento ;) provvedo a mettere un [risolto]

saluti,
tek
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum