From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 44270 invoked by alias); 20 Jun 2016 12:56:31 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 44257 invoked by uid 89); 20 Jun 2016 12:56:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=AWL,BAYES_50,KAM_TK,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=underline, menu, pixels, H*r:ip*192.168.1.102 X-HELO: out3-smtp.messagingengine.com Received: from out3-smtp.messagingengine.com (HELO out3-smtp.messagingengine.com) (66.111.4.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 20 Jun 2016 12:56:20 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 7338B20743; Mon, 20 Jun 2016 08:56:18 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Mon, 20 Jun 2016 08:56:18 -0400 Received: from [192.168.1.102] (host86-141-128-72.range86-141.btcentralplus.com [86.141.128.72]) by mail.messagingengine.com (Postfix) with ESMTPA id C98C3CC01B; Mon, 20 Jun 2016 08:56:17 -0400 (EDT) From: Jon Turney Subject: Re: git gui menu fonts are too small, unreadable Reply-To: cygwin@cygwin.com References: To: cygwin@cygwin.com Cc: jeff.buckles-cygwin@bookloaf.net Message-ID: <9326cdc3-e226-c676-8ef0-8f7518ed90da@dronecode.org.uk> Date: Mon, 20 Jun 2016 12:59:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2016-06/txt/msg00264.txt.bz2 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