From: Serhii Tereshchenko <serg.partizan@gmail.com>
To: Johannes Sixt <j6t@kdbg.org>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Fix default font scaling
Date: Fri, 21 Jun 2024 10:18:03 +0300 [thread overview]
Message-ID: <3M5FFS.HXL15VW2HPOG1@gmail.com> (raw)
In-Reply-To: <0c845460-c211-48e6-af93-a0b483817420@kdbg.org>
On Fri, Jun 21 2024 at 00:04:50 +02:00:00, Johannes Sixt <j6t@kdbg.org>
wrote:
> Am 20.06.24 um 20:11 schrieb Serhii Tereshchenko:
>> Yeah, I'm also testing this way.
>>
>> No, fonts should not be independent from DPI, but now some fonts are
>> scaling just like the others.
>>
>> To clearly see the result, set comfortable DPI, so fonts are
>> reasonably
>> sized (if this value is close to 96, better use something larger,
>> like
>> 130 or 200 to see the effect).
>>
>> When you run "git-gui" from the master branch, look at the fonts
>> for:
>>
>> - menubar and menu (explicitly set, scaled with DPI - our baseline)
>> - buttons in the lower part (Commit, Rescan, etc), labels like
>> "Current
>> branch" - (unscaled, visibly smaller than menubar)
>> - you can also open "Edit -> Options", and everything there will be
>> smaller size as well.
>>
>> After applying patch, all fonts are scaled equally (e.q. - small
>> DPI -
>> everything small, large DPI - everything big).
>>
>> If, however - you see second behavior on both cases, I'm really
>> interested to get more details:
>
> I see the second behavior regardless of the patch, i.e. with small DPI
> all fonts are small, with large DPI all fonts are large.
>
> The label "Current branch" is the same size as other fonts except
> when I
> select a different font size in Edit->Options as "Main Font".
>
>
>> - What OS and Tcl/Tk are you using?
>>
>> I remember few years ago it worked fine on my ArchLinux, so if other
>> distros aren't updated something yet, it may still work.
>>
>> On Arch we have Tcl/Tk 8.6.14.
>>
>> And to go even deeper, we may compare results from `wish`:
>>
>>> package require Tk 8.5
>> 8.6.14
>>> font configure TkDefaultFont
>> -family sans-serif -size -12 -weight normal -slant roman -underline
>> 0
>> -overstrike 0
>>> font actual TkDefaultFont
>> -family {Nokia Sans S60} -size 9 -weight normal -slant roman
>> -underline
>> 0 -overstrike 0
>
> I have this:
>
> % package require Tk 8.5
> 8.6.12
> % font configure TkDefaultFont
> -family sans-serif -size -12 -weight normal -slant roman -underline 0
> -overstrike 0
> %
> % font actual TkDefaultFont
> -family Arial -size 9 -weight normal -slant roman -underline 0
> -overstrike 0
> %
>
> I am using openSUSE Leap 15.5 under KDE Frameworks 5.103.0
>
> -- Hannes
>
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)
next prev parent reply other threads:[~2024-06-21 7:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-15 8:53 [PATCH] Fix default font scaling Serhii Tereshchenko
2024-06-15 16:32 ` Eric Sunshine
2024-06-16 10:30 ` Johannes Sixt
2024-06-16 12:37 ` Serhii Tereshchenko
2024-06-20 17:24 ` Johannes Sixt
2024-06-20 18:11 ` Serhii Tereshchenko
2024-06-20 22:04 ` Johannes Sixt
2024-06-21 7:18 ` Serhii Tereshchenko [this message]
2024-06-23 9:13 ` Johannes Sixt
2024-06-23 10:11 ` serg.partizan
2024-06-23 14:00 ` serg.partizan
2024-06-23 15:50 ` Johannes Sixt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3M5FFS.HXL15VW2HPOG1@gmail.com \
--to=serg.partizan@gmail.com \
--cc=git@vger.kernel.org \
--cc=j6t@kdbg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox