git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] gitk: use symbolic font names "sans" and "monospace" when available

From
Paul Mackerras <paulus@samba.org>
Date
Mar 18, 2012, 23:25 UTC
Message-ID
<20120318232503.GG26977@bloggs.ozlabs.ibm.com>
In-Reply-To
<20120308123011.GA4355@burratino>
On Thu, Mar 08, 2012 at 06:30:11AM -0600, Jonathan Nieder wrote:
Show 23 quoted lines
> The following only concerns systems using X and the client-side font
> rendering framework from freedesktop.org.  Windows and Mac OS X are
> not affected.
> 
> Starting with version 8.5, Tk uses freetype and fontconfig by default
> to render fonts on platforms that support it.  Gitk currently defaults
> to the font Helvetica for the interface and Courier for diffs, and
> both unfortunately look rather bad on screen in the default
> configuration on many Linux distros with anti-aliasing and poor
> hinting.
> 
> It is better to default to "sans" and "monospace", which are mapped by
> fontconfig to some appropriate font of the sysadmin and user's
> choosing (typically Bitstream Vera Sans and Mono).  The result looks
> more sensible and it makes gitk feel like a well-behaved software
> citizen since its fonts match other native apps.
> 
> This patch does not change the appearance of gitk for users that have
> already run it, since gitk uses the remembered UI and diff font names
> from ~/.gitk
> 
> Requested-by: Michael Biebl <biebl@debian.org>
> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Thanks, applied.
Paul.
Previous: Mark HillsNext: Jonathan Nieder
Message 5 of 6 in “gitk: use symbolic font names "sans" and "monospace" when available”
  1. gitk: use symbolic font names "sans" and "monospace" when availableJonathan Nieder, Mar 8, 2012
  2. Josh TriplettMar 8, 2012
  3. Jonathan NiederMar 8, 2012
  4. Mark HillsMar 8, 2012
  5. Paul MackerrasMar 18, 2012
  6. Jonathan NiederMar 19, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.