# gitk - ewww

7 messages from 2005-12-04 to 2005-12-06. Participants: Ben Clifford, Linus Torvalds, H. Peter Anvin, Junio C Hamano, Nikolai Weibull, Paul Mackerras.
Thread: https://gitlist.dev/t/2741

## Ben Clifford, 2005-12-04 01:27

Subject: gitk - ewww
Message-ID: <6CC092B0-101F-4D98-9761-B4E24A7CA35A@hawaga.org.uk>
URL: https://gitlist.dev/e/6CC092B0-101F-4D98-9761-B4E24A7CA35A%40hawaga.org.uk

```
Here's a screen shot that surprised me with a really high 'ewwww'  
factor when I fired up gitk this morning on my local git repo, given  
that it looks pretty the rest of the time.

This repo tracking git master with just one extra commit that I've  
added and rebase off origin repeatedly.

The area around where the 'master' green tag is displayed  
(specifically the two lines below it) are surprisingly poor.

I'm not going to learn tcl/tk and how gitk works to investigate,  
though, but maybe someone else cares enough and/or can see a trivial  
fix...

Screen shot is at:
http://www/hawaga.org.uk/ben/tech/gitk-eww-1.png

If trying to recreate, e011472b550b27a4644403c6fa99543ee9004a63 is  
only on my local machine, but I can supply a copy of my tree too.


$ cg status
Heads:
    >master      e011472b550b27a4644403c6fa99543ee9004a63
   R origin      56b5e946f2ba4fd57bbe14f9e3ec2e0ae314d5e6


-- 
Ben • ベン • Бэн • 벤 • 班明
http://www.hawaga.org.uk/ben/
My email is high latency but best way to contact me. Alternatively,  
SMS number(s) at above URL.

```

## Linus Torvalds, 2005-12-04 04:44

Subject: Re: gitk - ewww
Message-ID: <Pine.LNX.4.64.0512032040240.3099@g5.osdl.org>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0512032040240.3099%40g5.osdl.org
In-Reply-To: <6CC092B0-101F-4D98-9761-B4E24A7CA35A@hawaga.org.uk>

```


On Sun, 4 Dec 2005, Ben Clifford wrote:
> 
> Screen shot is at:
> http://www/hawaga.org.uk/ben/tech/gitk-eww-1.png

Yes. gitk doesn't look wonderful with octopus merges, the lines start 
crossing. Oh well. I think you have to live with it, it's done this for a 
long time.

What makes _me_ go "eww" in that screenshot is that tcl/tk doesn't do 
anti-aliased fonts, but maybe that's just me, and that's apparently 8.5 
has that fixed (at a horrible performance impact, I'm sure, but hey, one 
look at your screenshot and I'm saying "bring it on").

		Linus

```

## H. Peter Anvin, 2005-12-04 06:05

Subject: Re: gitk - ewww
Message-ID: <4392871B.1030300@zytor.com>
URL: https://gitlist.dev/e/4392871B.1030300%40zytor.com
In-Reply-To: <Pine.LNX.4.64.0512032040240.3099@g5.osdl.org>

```
Linus Torvalds wrote:
> 
> On Sun, 4 Dec 2005, Ben Clifford wrote:
> 
>>Screen shot is at:
>>http://www/hawaga.org.uk/ben/tech/gitk-eww-1.png
> 
> 
> Yes. gitk doesn't look wonderful with octopus merges, the lines start 
> crossing. Oh well. I think you have to live with it, it's done this for a 
> long time.
> 
> What makes _me_ go "eww" in that screenshot is that tcl/tk doesn't do 
> anti-aliased fonts, but maybe that's just me, and that's apparently 8.5 
> has that fixed (at a horrible performance impact, I'm sure, but hey, one 
> look at your screenshot and I'm saying "bring it on").
> 

It usually work OK for me, running on Fedora Core 4.

Clearly, though, it's Tcl/Tk version dependent; especially since it 
looks absolutely *awful* on Cygwin.

	-hpa

```

## Junio C Hamano, 2005-12-04 06:23

Subject: Re: gitk - ewww
Message-ID: <7vpsodtm6j.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vpsodtm6j.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <Pine.LNX.4.64.0512032040240.3099@g5.osdl.org>

```
Linus Torvalds <torvalds@osdl.org> writes:

> On Sun, 4 Dec 2005, Ben Clifford wrote:
>> 
>> Screen shot is at:
>> http://www/hawaga.org.uk/ben/tech/gitk-eww-1.png
>
> Yes. gitk doesn't look wonderful with octopus merges, the lines start 
> crossing. Oh well. I think you have to live with it, it's done this for a 
> long time.

FWIW, when the first ever Octopus was made, it looked wonderful.
The way gitk renders octopus is somehow quite different these
days.

```

## Ben Clifford, 2005-12-04 09:38

Subject: Re: gitk - ewww
Message-ID: <408B7182-4EE2-45F8-ADC0-57108781B073@hawaga.org.uk>
URL: https://gitlist.dev/e/408B7182-4EE2-45F8-ADC0-57108781B073%40hawaga.org.uk
In-Reply-To: <4392871B.1030300@zytor.com>

```

>> What makes _me_ go "eww" in that screenshot is that tcl/tk doesn't  
>> do anti-aliased fonts, but maybe that's just me, and that's  
>> apparently 8.5 has that fixed (at a horrible performance impact,  
>> I'm sure, but hey, one look at your screenshot and I'm saying  
>> "bring it on").
>>
>
> It usually work OK for me, running on Fedora Core 4.
>
> Clearly, though, it's Tcl/Tk version dependent; especially since it  
> looks absolutely *awful* on Cygwin.

The Wish/About Tcl & Tk menu option reports tcl/tk 8.4.7 - so I'd  
guess any changes made for 8.5 won't have arrived at this host yet.

This is under Mac OS X 10.4.2.

-- 
Ben • ベン • Бэн • 벤 • 班明
http://www.hawaga.org.uk/ben/
My email is high latency but best way to contact me. Alternatively,  
SMS number(s) at above URL.

```

## Nikolai Weibull, 2005-12-04 17:12

Subject: Re: gitk - ewww
Message-ID: <20051204171206.GA8819@puritan.petwork>
URL: https://gitlist.dev/e/20051204171206.GA8819%40puritan.petwork
In-Reply-To: <Pine.LNX.4.64.0512032040240.3099@g5.osdl.org>

```
Linus Torvalds wrote:

> On Sun, 4 Dec 2005, Ben Clifford wrote:

> > Screen shot is at:
> > http://www/hawaga.org.uk/ben/tech/gitk-eww-1.png

> What makes _me_ go "eww" in that screenshot is that tcl/tk doesn't do
> anti-aliased fonts, but maybe that's just me, and that's apparently
> 8.5 has that fixed (at a horrible performance impact, I'm sure, but
> hey, one look at your screenshot and I'm saying "bring it on").

Just use a slightly larger font and it should be fine.  The lower-right
field, whatever that lists (changed files?) - I have never used gitk,
uses anti-aliasing, and the only problem I see is that the
commit-message listing uses a font that is way too small (or is badly
designed).  The top pane is easily readable, although it could use a
slightly larger point-size.

Anti-aliasing is only a hack for displaying text on a screen.  It's not
a substitute for choosing your fonts and point sizes with care.  A
bitmapped font designed for small point-sizes will always look more
crisp than a generic TTF at small point-sizes.

        nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

```

## Paul Mackerras, 2005-12-06 22:54

Subject: Re: gitk - ewww
Message-ID: <17302.5807.533467.200693@cargo.ozlabs.ibm.com>
URL: https://gitlist.dev/e/17302.5807.533467.200693%40cargo.ozlabs.ibm.com
In-Reply-To: <6CC092B0-101F-4D98-9761-B4E24A7CA35A@hawaga.org.uk>

```
Ben Clifford writes:

> The area around where the 'master' green tag is displayed  
> (specifically the two lines below it) are surprisingly poor.

Yes.

> I'm not going to learn tcl/tk and how gitk works to investigate,  
> though, but maybe someone else cares enough and/or can see a trivial  
> fix...

I'm working on changes which should fix this and also speed it up, but
it's not trivial... :)

Paul.

```
