all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sineau Gh <sineaugh@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 42562@debbugs.gnu.org
Subject: bug#42562: Problem with rendering Persian text still exists in minibuffer and dired
Date: Fri, 31 Jul 2020 00:35:13 +0430	[thread overview]
Message-ID: <CADVejcQENqBaG2oWQ92u17U1ZPTuvqVxXSUUOFXWdVZN4RbfMQ@mail.gmail.com> (raw)
In-Reply-To: <CADVejcTJwLnBoDJhMuW9PD5yQkw=jKOAN4DxaWgd6hVGHasD_Q@mail.gmail.com>

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

Hi again,
Here's some more info I have gathered. If I haven't set the default font in
my config file, `M-x set-frame-font` only works if there's already an open
buffer in the frame. And if I visit a new file, the ligatures are rendered
broken again, although the font is the same. So I have to change the font
again.

On Thu, 30 Jul 2020 at 23:42, Sineau Gh <sineaugh@gmail.com> wrote:

>
>
>
> > From: Sineau Gh <sineaugh@gmail.com>
>> > Date: Thu, 30 Jul 2020 17:27:36 +0430
>> > Cc: 42562@debbugs.gnu.org
>> >
>> > The problem I originally reported was not concerned with typing text,
>> but text rendered in read-only buffers
>> > (ie. dired and minibuffer).
>>
>> Then please describe the steps to reproduce this with one such
>> read-only buffer.
>>
>>
>
> > Also here's the bad news. Just now I realized that bug#41005 is not
>> solved yet. At certain combinations of
>> > characters, the ligatures are still disjointed. Also I tried to change
>> the font family, but that  didn't help either.
>> > This doesn't happen when I compiled emacs using --without-harfbuzz
>> option. I don't know if it helps but I can
>> > try to find if there's a pattern to the combinations of characters I
>> mentioned.
>>
>> Here also we would need a recipe to reproduce the problem.
>>
>> These problems are highly context dependent, and cannot be debugged
>> without a reproducer.
>
>
>
>> Thanks.
>>
>
>
>>
> Upon further investigation, I realized that in my config I have used a
> combination of `default-frame-alist` and `set-fontset-font` that I forgot
> about. So here's a reproduction I hope can be useful for you. First of all
> the case is the same for both editable buffers and read-only ones so I'm
> just using a file with following content:
> تست
> تحقیق
> به
> اصالت
>
> شرتالکو
> حقیق
> حقیقت
> سنت
> تالکو
> مدرن
> مدرنیزاسیون
> I have tested this in three cases. Please note they are basically the same
> with some minor differences, but I mention them for completeness.
> 1- If I have not set a default font in my config, the text is rendered
> with broken ligatures. And if I set the font using `M-x set-frame-font`
> then everything is okay (even if I set it again to the default font used
> for Persian / Arabic text).
>
> 2- If I use something like the following in my config files:
> `(add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-12"))`
> on init the font is rendered broken. And if I set the font using `M-x
> set-frame-font` then everything is okay. Now if I set it again to DejaVu
> Sans Mono (the font I have used in my config file), it still shows broken
> text. I have to first set it to another font and then set it again to
> DejaVu so it renders correctly.
>
> 3- If I use the following line in my config:
> `(set-frame-font "DejaVu Sans Mono-12" t t)`
> on init the font is broken. And if I set the font using `M-x
> set-frame-font` then everything is okay (like previous cases). But I can't
> set it to DejaVu Sans Mono using `M-x set-frame-font` in any way. That
> means I first tried to change the font to something different and then back
> to DejaVu and still it didn't work.
>
> I should note that I have tested this with various fonts and the result is
> the same. Also I have tested this in Org and Fundamental modes and the
> result is the same. Also I didn't add `set-fontset-font` to the mix but I
> supposed it's not going to make a difference.
>
> I hope this helps, and excuse me if it's not. Thanks for your patience.
>

[-- Attachment #2: Type: text/html, Size: 4963 bytes --]

  reply	other threads:[~2020-07-30 20:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-27 19:21 bug#42562: Problem with rendering Persian text still exists in minibuffer and dired Sineau Gh
2020-07-28  2:26 ` Eli Zaretskii
2020-07-29 15:50   ` Sineau Gh
2020-07-29 18:32     ` Eli Zaretskii
2020-07-30 12:57       ` Sineau Gh
2020-07-30 13:30         ` Eli Zaretskii
2020-07-30 19:12           ` Sineau Gh
2020-07-30 20:05             ` Sineau Gh [this message]
2020-07-31  5:13               ` Eli Zaretskii
2020-07-31  5:38                 ` Sineau Gh
2020-07-31  6:06                   ` Eli Zaretskii
2020-07-31  6:32                     ` Sineau Gh
2020-07-31 12:56                       ` Eli Zaretskii
2020-07-31 13:32                         ` Sineau Gh
2020-07-31 14:31                           ` Eli Zaretskii
2022-03-22 15:37                         ` Lars Ingebrigtsen

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=CADVejcQENqBaG2oWQ92u17U1ZPTuvqVxXSUUOFXWdVZN4RbfMQ@mail.gmail.com \
    --to=sineaugh@gmail.com \
    --cc=42562@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.