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

Re: [PATCH] Fix default font scaling

From
serg.partizan@gmail.com <serg.partizan@gmail.com>
Date
Jun 23, 2024, 10:11 UTC
Message-ID
<YY2JFS.UYR26AJBROJJ3@gmail.com>
In-Reply-To
<506e1f16-ac02-496c-a9dc-414726c1c37f@kdbg.org>

On нд, чер 23 2024 at 11:13:53 +02:00:00, Johannes Sixt <j6t@kdbg.org> wrote:

Show 29 quoted lines
> Am 21.06.24 um 09:18 schrieb Serhii Tereshchenko:
>>  Thanks! I tried booting into Fedora/37 with the same Tk version, 
>> and it
>>  indeed does not have this scaling problem.
>> 
>>  Then, I downgraded packages on Arch to 8.6.12 and 8.6.13 - also no 
>> problem.
>> 
>>  The only version affected is 8.6.14.
>> 
>>  That's probably a bug in Tk (and there's quite a few reported, 
>> mostly
>>  about "tk scaling" https://core.tcl-lang.org/tk/info/1de3a48312, we
>>  don't use it explicitly in git-gui but on my system it is set to 
>> 1.3)
> 
> What is the best course of action now? Since this change does not make
> things any different for me on Linux+KDE, I am inclined to pick up 
> this
> patch with a modified commit message and code comment that clearly 
> state
> that this is a work-around for a bug in Tk introduced in 8.6.14. This
> would help users who upgrade from an earlier version of Tk, because it
> does not look like a fix of Tk is in the works (or that the issue is
> regarded as a regression by Tk people at all).
> 
> Suggestions?
> 
> -- Hannes

I tried running default git-gui and this patch on macOS 12 Monterey, and that version does not have font scaling, so there's no problem. I will ask around and maybe find someone with latest macOS, which has font scaling, and see if there's a problem.

Patch does not breaks anything, but produces a warning due to system fonts being present in 'font names'.

Then, if turns out this linux-specific problem - i'd limit this fix only to linux. If this affects other platforms - i'd filter fonts to only include those starting with 'Tk' prefix.

Previous: Johannes SixtNext: serg.partizan@gmail.com
Message 10 of 12 in “Fix default font scaling”
  1. Fix default font scalingSerhii Tereshchenko, Jun 15, 2024
  2. Eric SunshineJun 15, 2024
  3. Johannes SixtJun 16, 2024
  4. Serhii TereshchenkoJun 16, 2024
  5. Johannes SixtJun 20, 2024
  6. Serhii TereshchenkoJun 20, 2024
  7. Johannes SixtJun 20, 2024
  8. Serhii TereshchenkoJun 21, 2024
  9. Johannes SixtJun 23, 2024
  10. serg.partizan@gmail.comJun 23, 2024
  11. serg.partizan@gmail.comJun 23, 2024
  12. Johannes SixtJun 23, 2024

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.