public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* git gui menu fonts are too small, unreadable
@ 2016-06-07 22:32 Jeff Buckles
  2016-06-20 12:59 ` Jon Turney
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Buckles @ 2016-06-07 22:32 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1035 bytes --]

Menu fonts in 'git gui' are too small to be readable
(only one or two pixels high).   "gitk" works fine.

Same result whether I start 'git gui' from the command line
or from gitk.

I'm running cygwin 32 on windows 7.   uname -a shows:
CYGWIN_NT-6.1-WOW myname-LT 2.5.1(0.297/5/3) 2016-04-21 22:12 i686 Cygwin

Starting the X server from tcsh as:
  setenv DISPLAY :0; run xwin -multiwindow
(starting the server in foreground so I can see any 
console messages)

After the flurry of messages from X server initialization,
there is no output to the console or to /var/log/xwin/Xorg.0.log
when starting git gui except one line to the console:

  OS has icon alpha channel support: yes

So far I have tried:
  Searching mailing list archives
  google.  Lots of google...
  installing any missing xorg-X11-fonts-* packages
  re-installing git, git gui, gitk

cygcheck.out is attached with usernames redacted.

Any ideas are welcome.
Thanks and Best Regards,
-- Jeff Buckles
-- jeff.buckles-cygwin@bookloaf.net
-- Aloha, OR, USA






	

  


[-- Attachment #2: cygcheck.out --]
[-- Type: application/octet-stream, Size: 103027 bytes --]

[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

--
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git gui menu fonts are too small, unreadable
  2016-06-07 22:32 git gui menu fonts are too small, unreadable Jeff Buckles
@ 2016-06-20 12:59 ` Jon Turney
  0 siblings, 0 replies; 2+ messages in thread
From: Jon Turney @ 2016-06-20 12:59 UTC (permalink / raw)
  To: cygwin; +Cc: jeff.buckles-cygwin

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-20 12:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-07 22:32 git gui menu fonts are too small, unreadable Jeff Buckles
2016-06-20 12:59 ` Jon Turney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).