delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/06/20/08:56:49

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: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <jon DOT turney AT dronecode DOT org DOT uk>
Subject: Re: git gui menu fonts are too small, unreadable
Reply-To: cygwin AT cygwin DOT com
References: <b80c6b69-a080-0357-111f-5a82eb2f4c43 AT bookloaf DOT net>
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: <b80c6b69-a080-0357-111f-5a82eb2f4c43@bookloaf.net>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019