{"thread":{"id":"49966","subject":"Issue with git-gui and font used for widgets","startedAt":"2018-12-07T06:10:53Z","lastAt":"2018-12-07T06:10:53Z","messageCount":1,"participants":["Eric Work"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"364732","messageId":"CAGqRQN8XmCJ=_qqPNxmt3B=KUWNs6Yx8Y0q7hLNWJrP6=4rgKw@mail.gmail.com","threadId":"49966","inReplyTo":null,"subject":"Issue with git-gui and font used for widgets","fromName":"Eric Work","fromEmail":"work.eric@gmail.com","sentAt":"2018-12-07T06:10:38Z","receivedAt":"2018-12-07T06:10:53Z","isPatch":false,"sender":{"key":"work.eric@gmail.com","avatar":null},"body":"Hi,\n\nI have set my UI font in the git-gui preferences, but it only affects\nthe menus and certain widgets.  It does not apply the font to labels\nand buttons.  This creates a problem for my HiDPI display because the\nfonts are quite small.  I've never programmed in TCL/TK before so I\ndon't know exactly what is wrong, but looking at the code I see where\nit's supposed to apply the font option to the widgets in a foreach\nloop.\n\nforeach class {Button Checkbutton Entry Label\n    Labelframe Listbox Message\n    Radiobutton Spinbox Text} {\n  option add *$class.font font_ui\n}\n\nBut that doesn't seem to work.  As an experiment I added the -font\nparameter (according to the docs) to where the branch label is created\nand that worked as expected.\n\n${NS}::label .branch.l1 \\\n  -text [mc \"Current Branch:\"] \\\n  -anchor w \\\n  -justify left \\\n  -font font_ui\n\nI don't know what is the expected behavior in terms of setting fonts,\nbut I would assume that is not expected?  It appears to be using\nTkDefaultFont instead.  The default font being small is really a tk\nproblem, where as setting the widget font is a git-gui problem.  I\ncreated the following bug report against tk to get some feedback on\nthe small default font issue as well as documented a workaround to\nallow per user default fonts.\n\nhttps://core.tcl-lang.org/tk/tktview/dccd82bdc70dc25bb6709a6c14880a92104dda43\n\nAny suggestions?\n\n-Eric\n"}]}