11

Using Linux, how can i configure font and font size in gitk?

Looking through the menus can be quite frustrating as they offer very little configuration possibilities.

Martin G
  • 17,357
  • 9
  • 82
  • 98

1 Answers1

21

You can configure the font and font size in either:

  • ~/.config/git/gitk or
  • ~/.gitk

Example:

set mainfont {Monaco 10}
set textfont {Monaco 10}
set uifont {Monaco 10}

You can also do it through the tool itself:

  1. Open menu Edit/Preferences
  2. Click Fonts
  3. Click for example Main font to set the properties of the main font
Mr. Polywhirl
  • 42,981
  • 12
  • 84
  • 132
Martin G
  • 17,357
  • 9
  • 82
  • 98
  • 4
    The file `~/.gitk` is one of three possible locations of the config file. Mine is in `~/.config/git/gitk`. For other locations see https://git-scm.com/docs/gitk#_files – Marc P. Apr 25 '18 at 10:19
  • Yes, thie `~/.gitk` is further down the list, so check if `~/.config/git/gitk` exists first. You can see what it opens by running `strace gitk`. – Tomasz Gandor Oct 30 '20 at 23:16