git gui menu fonts are too small, unreadable

Jon Turney jon.turney@dronecode.org.uk
Mon Jun 20 12:59:00 GMT 2016


On 07/06/2016 23:31, Jeff Buckles wrote:
> Menu fonts in 'git gui' are too small to be readable
> (only one or two pixels high).   "gitk" works fine.

Thanks for reporting this problem.

I was able to reproduce this problem, with a fresh installation, but 
only on x86, not on x86_64

It seems that default font used by git gui is '0pt DejaVu Sans', where 
0pt has a special meaning in Tcl/Tk of 'a platform-dependent default 
size' [1], which is 12 pt for on X11.

There seems to be a bug somewhere in Tcl/Tk (or perhaps in the 'git gui' 
script), so that on x86, the size attribute it ends asking fontconfig 
for is INT_MIN, not 0.

It also seems that fontconfig has recently changed it the way it handles 
this invalid value, now giving you a very tiny font.

Until we have a solution, you can work around this by setting the font 
to have a definite size in ~/.gitconfig, e.g. adding

> [gui]
>         fontui = -family \"DejaVu Sans\" -size 12 -weight normal -slant roman -underline 0 -overstrike 0

[1] https://www.tcl.tk/man/tcl8.5/TkCmd/font.htm#M26

-- 
Jon Turney
Volunteer Cygwin/X X Server maintainer

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list