X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:subject:reply-to:references:to:cc :message-id:date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=dvDZKZYNOO1cyaar uRomaTkwBx8jJgkb8NIwInhUhY4z/gUv+UOnUtAGzJC7s26g05c2oS+HtE3QJArd ZDrms7ctoUdqLmi6dYLj6LWij/oq3fu5cgM8+8Op7z//0IRwxnYqPRi1kW9ocdE1 WRW/Y6VxHFRx+xjdAld3qeI4/6s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:subject:reply-to:references:to:cc :message-id:date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=DRSefj+rVVF+zq0UlwAJkS 1NJCk=; b=oMV94EpIuHEjPuyuV2n9Lo3x/ZaU4440AlPDxwysIxUe+Bg94fAPIm sOB/SZ0Rfd92elSjUId6JddGVeMrb24cKKLDwNmVxCN4zBEH3adaY/Vp4QhkZ84Q 9Gk3gZhmk/2lTf5VN6WPzN6Fv4TS7semQ0t2OJFQ4CG26GSpNCbMo= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 From: Jon Turney Subject: Re: git gui menu fonts are too small, unreadable Reply-To: cygwin AT cygwin DOT com References: To: cygwin AT cygwin DOT com Cc: jeff DOT buckles-cygwin AT bookloaf DOT net Message-ID: <9326cdc3-e226-c676-8ef0-8f7518ed90da@dronecode.org.uk> Date: Mon, 20 Jun 2016 13:56:12 +0100 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 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