unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Visuwesh <visuweshm@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 54646@debbugs.gnu.org
Subject: bug#54646: 29.0.50; set-fontset-font and font clipping issues
Date: Thu, 31 Mar 2022 12:33:47 +0530	[thread overview]
Message-ID: <871qyiob70.fsf@gmail.com> (raw)
In-Reply-To: <83r16i7kim.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 31 Mar 2022 08:34:25 +0300")

[-- Attachment #1: Type: text/plain, Size: 1287 bytes --]

[வியாழன் மார்ச் 31, 2022] Eli Zaretskii wrote:

>> From: Visuwesh <visuweshm@gmail.com>
>> Date: Thu, 31 Mar 2022 09:07:30 +0530
>> 
>> I cannot seem to reproduce this from emacs -Q, nor do I see this issue
>> when I start Emacs up (I use the daemon if that makes a difference [2]).
>> [...]
>> It naturally shows up after using Emacs for a while, sometimes reopening
>> the frame fixes the clipping problems, sometimes I have to reevaluate
>> the set-fontset-font form to fix it.  And this issue isn't font-specific
>> as well: I had the same problem with "Noto Serif."  I would highly any
>> hints towards nailing the problem down; I'm really out of ideas.
>
> When it happens, does it help to do the below?
>
>   M-: (clear-composition-cache) RET
>

It does not really help.  I saw a slight change in the "gaps" between
characters.  But I do believe the issue might be do with some kind of
caching: when I read Tamil text, I tend to increase the buffer text size
using C-x C-+.  Currently, Emacs does not display the text properly but
if I zoom in enough (so that the scale is similar/same as the one that
was used in another buffer), the text is shaped properly.  Please see
the following screenshots,

before text-scale-mode:


[-- Attachment #2: screenshot_202203311232.png --]
[-- Type: image/png, Size: 34595 bytes --]

[-- Attachment #3: Type: text/plain, Size: 30 bytes --]


after text-scale-mode (6x):


[-- Attachment #4: screenshot_202203311231.png --]
[-- Type: image/png, Size: 131664 bytes --]

[-- Attachment #5: Type: text/plain, Size: 2207 bytes --]


> Also, does this happen with buffer text or on the mode line?  

I'm not sure about the mode line (buffer names with Tamil text render
just fine) but the header line can have clipped text.  The screenshots
are from a dired buffer.

> If it happens with buffer text, try these two experiments when it
> happens:
>
>   . move the cursor with C-f across the problematically-displayed
>     text, and see whether the display becomes correct and/or whether
>     you see some display artifacts, like "ghosts" of the cursor block
>     left behind;

I observe none of these.

>   . go to the problematically-displayed text and type "C-u C-x =",
>     then compare what you see with the results of "C-u C-x =" for
>     the same text when it is correctly displayed
>

The *Help* buffer also has incorrectly shaped text.

>> [2] Modifying the fontset in `server-after-make-frame-hook' does not
>>     make a difference.  I don't see the issue when I do not use the
>>     daemon but I believe I haven't run the non-daemon session long
>>     enough.
>
> Then please try running such a non-daemon session longer.  It is
> important to know whether this is at all related to daemon.
>

Yes, I will do and see if there are any changes.

> If it only happens with daemon sessions, I'll ask you to describe in
> more detail how you use those sessions.  In particular, do you use
> both GUI and TTY emacsclient frames in the same session, 

I only use GUI frames.  But I do use emacsclient -c --eval a fair bit in
scripts (that mostly launch a GUI frame and runs a command---`shell',
`org-capture', etc.).

> do you edit Tamil text in TTY frames, 

No.  I don't use TTY frames.  

> do you connect to the same server from different remote hosts, 

No such thing.

> or display frames on clients that use different font for Tamil?  

I'm not sure what you exactly mean here: all clients use the same font.

> Any other detail in your routine usage might give a clue.
>

Since I observed (clear-composition-cache) change the "size" of Tamil
text a tiny bit, I can say that I rely on text-scale-mode a lot.  I
increase the buffer text by 2 to 3 times when writing something as that
helps me focus a bit better.

> Thanks.

  reply	other threads:[~2022-03-31  7:03 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-31  3:37 bug#54646: 29.0.50; set-fontset-font and font clipping issues Visuwesh
2022-03-31  5:34 ` Eli Zaretskii
2022-03-31  7:03   ` Visuwesh [this message]
2022-03-31  7:11     ` Eli Zaretskii
2022-03-31  7:35       ` Visuwesh
2022-03-31  8:45       ` Visuwesh
2022-03-31  9:04         ` Eli Zaretskii
2022-03-31  9:29           ` Visuwesh
2022-03-31  9:41             ` Eli Zaretskii
2022-03-31 12:16               ` Visuwesh
2022-03-31 14:04                 ` Eli Zaretskii
2022-03-31 13:44               ` Visuwesh
2022-03-31 14:10                 ` Eli Zaretskii
2022-03-31 14:12                   ` Eli Zaretskii
2022-03-31 15:07                   ` Visuwesh
2022-03-31 16:49                     ` Eli Zaretskii
2022-03-31 17:38                       ` Robert Pluim
2022-04-01  1:05                         ` Visuwesh
2022-04-01  3:08                           ` Visuwesh
2022-04-01  8:49                             ` Robert Pluim
2022-04-01 10:54                               ` Eli Zaretskii
2022-04-01 11:38                                 ` Visuwesh
2022-04-01 12:14                                   ` Eli Zaretskii
2022-04-01 13:10                                     ` Visuwesh
2022-04-01 14:19                                       ` Eli Zaretskii
2022-04-01 14:58                                 ` Visuwesh
2022-04-01 15:27                                   ` Eli Zaretskii
2022-04-01 16:40                                     ` Visuwesh
2022-04-01 17:58                                       ` Eli Zaretskii
2022-04-03  9:15                                         ` Visuwesh
2022-04-03 10:06                                           ` Eli Zaretskii
2022-04-03 10:26                                             ` Visuwesh
2022-04-03 10:50                                               ` Eli Zaretskii
2022-04-03 11:10                                                 ` Visuwesh
2022-04-21 14:50                                                   ` Visuwesh
2022-04-22  7:23                                                     ` Eli Zaretskii
2022-04-22 10:46                                                       ` Visuwesh
2022-04-22 10:48                                                         ` Eli Zaretskii
2022-06-11 13:54                                                           ` Visuwesh
2022-06-12  1:34                                                             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-12  5:55                                                               ` Eli Zaretskii
2022-06-12  4:49                                                             ` Visuwesh
2022-06-12  5:53                                                             ` Eli Zaretskii
2022-06-12  7:47                                                               ` Visuwesh
2022-06-12 10:16                                                                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-08 11:48                                                             ` Visuwesh
2022-10-08 12:42                                                               ` Eli Zaretskii
2022-10-08 12:53                                                                 ` Visuwesh
2022-10-08 13:00                                                                   ` Eli Zaretskii
2022-10-09 11:31                                                                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-09 11:59                                                                     ` Visuwesh
2022-03-31  7:48     ` Eli Zaretskii
2022-03-31  8:47       ` Visuwesh

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871qyiob70.fsf@gmail.com \
    --to=visuweshm@gmail.com \
    --cc=54646@debbugs.gnu.org \
    --cc=eliz@gnu.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).