gitk: Keep track of font attributes ourselves instead of using font actual
authorPaul Mackerras <paulus@samba.org>
Sat, 6 Oct 2007 08:27:37 +0000 (18:27 +1000)
committerPaul Mackerras <paulus@samba.org>
Sat, 6 Oct 2007 08:27:37 +0000 (18:27 +1000)
commit0ed1dd3c77e606156f0f5d1baa59a47f33711787
tree03d289efe92f95b3ce02b283f66025d3414c0249
parent9c311b3208f25ce70edf0fdbe0f440ecd8e0bda7
gitk: Keep track of font attributes ourselves instead of using font actual

Unfortunately there seems to be a bug in Tk8.5 where font actual -size
sometimes gives the wrong answer (e.g. 12 for Bitstream Vera Sans 9),
even though the font is actually displayed at the right size.  This
works around it by parsing and storing the family, size, weight and
slant of the mainfont, textfont and uifont explicitly.

Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk