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

[PATCH 1/5] gitk: Remove forced use of sans-serif font

From
MHMark Hills <mark@pogo.org.uk>
Date
Jan 13, 2010, 20:40 UTC
Message-ID
<1263415222-5911-1-git-send-email-mark@pogo.org.uk>
In-Reply-To
<alpine.NEB.2.01.1001132030010.15349@jrf.vwaro.pbz>
The X resources set using uifont cover this case.
Signed-off-by: Mark Hills <mark@pogo.org.uk>
---
 gitk |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
diff --git a/gitk b/gitk
index 48cfce3..0e430bd 100755
--- a/gitk
+++ b/gitk
@@ -10528,7 +10528,6 @@ proc mkfontdisp {font top which} {
     set fontpref($font) [set $font]
     ${NS}::button $top.${font}but -text $which \
 	-command [list choosefont $font $which]
-    if {!$use_ttk} {$top.${font}but configure  -font optionfont}
     ${NS}::label $top.$font -relief flat -font $font \
 	-text $fontattr($font,family) -justify left
     grid x $top.${font}but $top.$font -sticky w
@@ -10791,15 +10790,6 @@ proc doprefs {} {
     mkfontdisp textfont $top [mc "Diff display font"]
     mkfontdisp uifont $top [mc "User interface font"]
 
-    if {!$use_ttk} {
-	foreach w {maxpctl maxwidthl showlocal autoselect tabstopl ntag
-	    ldiff lattr extdifff.l extdifff.b bgbut fgbut
-	    diffoldbut diffnewbut hunksepbut markbgbut selbgbut
-	    want_ttk ttk_note} {
-	    $top.$w configure -font optionfont
-	}
-    }
-
     ${NS}::frame $top.buts
     ${NS}::button $top.buts.ok -text [mc "OK"] -command prefsok -default active
     ${NS}::button $top.buts.can -text [mc "Cancel"] -command prefscan -default normal
@@ -11411,8 +11401,6 @@ namespace import ::msgcat::mc
 
 catch {source ~/.gitk}
 
-font create optionfont -family sans-serif -size -12
-
 parsefont mainfont $mainfont
 eval font create mainfont [fontflags mainfont]
 eval font create mainfontbold [fontflags mainfont 1]
-- 
1.6.6.5.ge408
Previous: Mark HillsNext: Mark Hills
Message 2 of 6 in “gitk: font and theme use”
  1. gitk: font and theme useMark Hills, Jan 13, 2010
  2. 1/5 gitk: Remove forced use of sans-serif fontMark Hills, Jan 13, 2010
  3. 2/5 gitk: Set the font for all spinbox widgetsMark Hills, Jan 13, 2010
  4. 3/5 gitk: Set the font for all listbox widgetsMark Hills, Jan 13, 2010
  5. 4/5 gitk: Disable option when themed widgets are not availableMark Hills, Jan 13, 2010
  6. 5/5 gitk: Use consistent font for all text input fieldsMark Hills, Jan 13, 2010

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.