You are not logged in.

#1 2013-05-26 16:34:42

chu887
Member
Registered: 2012-08-25
Posts: 23

How to set font size to make it smaller?

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

#2 2013-05-26 16:37:52

bjornoslav
Member
Registered: 2011-11-01
Posts: 137

Re: How to set font size to make it smaller?

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

#3 2013-05-26 16:50:53

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,452
Website

Re: How to set font size to make it smaller?

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

#4 2013-05-26 17:15:49

teckk
Member
Registered: 2013-02-21
Posts: 518

Re: How to set font size to make it smaller?

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

#5 2013-05-26 17:22:23

chu887
Member
Registered: 2012-08-25
Posts: 23

Re: How to set font size to make it smaller?

teckk wrote:

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

Thank you all,  problem has been solved  by  modifying  gtk-font-name="Sans 8"  in ~/.gtkrc-2.0 , thanks !

Offline

#6 2022-06-24 15:24:17

sergei_mipt
Member
Registered: 2019-11-09
Posts: 6

Re: How to set font size to make it smaller?

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

source

Offline

#7 2022-06-24 17:18:07

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: How to set font size to make it smaller?

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.


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

Board footer

Powered by FluxBB