Tuesday, 4 May 2010

TortoiseHg custom fonts

Permalink

On a fresh install on my PC, TortoiseHg repository explorer looks like this:

tortoisehg-fresh-install.png

The fonts used on the blue regions can be changed as described on the TortoiseHg Frequently Asked Questions page:

[gtools]
# font used in changeset viewer and commit log text
fontcomment = Tahoma 8
# font used for diffs in status and commit tools
fontdiff = Courier New 10
# font used in file lists in status and commit tools
fontlist = Tahoma 8
# font used in command output window
fontlog = Courier New 10

However, the only way I could find to change the font used to display the revision ID is to alter the monospace alias in {TortoiseHg folder}\gtk\etc\pango\pango.aliases:

mono = "courier new"
monospace = "courier new"

tortoisehg-with-courier-new-as-monospace.png

mono = "tahoma"
monospace = "tahoma"

tortoisehg-with-tahoma-as-monospace.png