# [bug] gitk doesn't start if font name contains spaces

1 messages from 2020-10-22 to 2020-10-22. Participants: Ingo Blechschmidt.
Thread: https://gitlist.dev/t/54486

## Ingo Blechschmidt, 2020-10-22 19:50

Subject: [bug] gitk doesn't start if font name contains spaces
Message-ID: <20201022195033.GA29199@quasicoherent>
URL: https://gitlist.dev/e/20201022195033.GA29199%40quasicoherent

```
Dear git developer community,

the following bug in gitk has surfaced in the NixOS bugtracker
(https://github.com/NixOS/nixpkgs/issues/86003):

gitk fails to start if the X resource "font" contains spaces. The
command

    $ echo "*font: xft:Bitstream Vera Sans Mono" | xrdb -merge
    $ gitk

reproduces this bug. The gitk window does not open, instead the
following error message is printed on the console:

    Error in startup script: expected integer but got "Vera"
	(database entry for "-font" in widget ".___tk_set_palette.button")
	invoked from within
    "$q .___tk_set_palette.$q"
	(procedure "tk_setPalette" line 82)
	invoked from within
    "tk_setPalette background $c selectColor $selc"
	(procedure "setui" line 8)
	invoked from within
    "setui $uicolor"
	(file "./gitk" line 12498)

I'm not subscribed to the mailing list but am happy to help on this issue.
Thank you for your continued work in maintaining gitk, very much appreciated!

Cheers,
Ingo

```
