You are not logged in.
Pages: 1
Topic closed
The font size of my GTK application(such as the fonts of menus of Chromium , Firefox ) is larger than I want, so how to make it smaller ? Note,I didn't install a desktop environment, only a window manager - DWM .
Google didn't tell me the answer. And I want to know ,is there any simple tools to config font ? I think fontconfig seems too complicated to use.
Thanks.
Offline
Install lxappearance and use it to set the font size you want.
asus ux303la, core i5@1.6ghz, 8 gb ram, 500gb hdd, hd4400 gpu, crux x64 with openbox
Offline
Or just edit ~/.gtkrc-2.0, or 3.0 as needed.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Examples
For gtk2
~/.gtkrc-2.0
gtk-icon-theme-name= "Tangerine"
gtk-theme-name= "dark"
gtk-font-name = "Sans 12"
For gtk3
~/.config/gtk-3.0/settings.ini
gtk-theme-name = darkgtk3
gtk-icon-theme-name = tangerine
gtk-font-name = Sans 12
gtk-icon-sizes = panel-menu=16,16:panel=16,16:gtk-menu=16,16:gtk-large-toolbar=16,16:gtk-small-toolbar=16,16:gtk-button=16,16
# gtk-toolbar-style = GTK_TOOLBAR_ICONS
Last one is for icons only
Offline
Examples
For gtk2
~/.gtkrc-2.0gtk-icon-theme-name= "Tangerine" gtk-theme-name= "dark" gtk-font-name = "Sans 12"
For gtk3
~/.config/gtk-3.0/settings.inigtk-theme-name = darkgtk3 gtk-icon-theme-name = tangerine gtk-font-name = Sans 12 gtk-icon-sizes = panel-menu=16,16:panel=16,16:gtk-menu=16,16:gtk-large-toolbar=16,16:gtk-small-toolbar=16,16:gtk-button=16,16 # gtk-toolbar-style = GTK_TOOLBAR_ICONS
Last one is for icons only
Thank you all, problem has been solved by modifying gtk-font-name="Sans 8" in ~/.gtkrc-2.0 , thanks !
Offline
sorry for necrobumping (the thread appeared first in search engine results)
I managed to get the desired result with the following settings for firefox:
export GDK_DPI_SCALE=1.3 ; firefox
you may also use the variable GDK_SCALE
Offline
sergei_mipt, you have a history of necrobumping, and you have been warned before. Please stop. Consider this your final warning.
Closing this ancient topic.
Offline
Pages: 1
Topic closed