Search code examples
linuxgitgitk

How can i configure font size in gitk?


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.


Solution

  • 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