all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "fr_ml@t-online.de" <fr_ml@t-online.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "56695@debbugs.gnu.org" <56695@debbugs.gnu.org>
Subject: bug#56695: AW: bug#56695: A new and old font problem with Arabic
Date: Fri, 22 Jul 2022 17:58:34 +0200 (CEST)	[thread overview]
Message-ID: <1658505514827.73776.682275763c1d9abc1bd4255a438e1cc56f74d095@spica.telekom.de> (raw)
In-Reply-To: <83tu79jkmx.fsf@gnu.org>

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

Try the Amiri font, I'm told it is OK.  But you need to set that up in
the fontset; do not use Amiri as your default font.

I've installed Amiri. And it was used as default for Arabic ('emacs -Q'). Is this normal? 

Anyway, I get the same positioning problem of the characters. But as I said I can't reproduce it. If I copy the same text into another frame the characters are displayed correctly.  

[I've added in this email the last 2 image files ('org_plus6_textsize.png' and 'org_plus6_textsize.png').]

About the other problem:
Is it possible to force Emacs to use 'DejaVu Sans Mono' for Arabic? As I said, it was always without any problems in Emacs.
(Amiri isn't a monospace font.)



-----Original-Nachricht-----
Betreff: Re: bug#56695: A new and old font problem with Arabic
Datum: 2022-07-22T16:18:59+0200
Von: "Eli Zaretskii" <eliz@gnu.org>
An: "fr_ml@t-online.de" <fr_ml@t-online.de>

[Please use Reply All to keep the bug tracker CC'ed.]

> Date: Fri, 22 Jul 2022 15:41:05 +0200 (CEST)
> From: "fr_ml@t-online.de" <fr_ml@t-online.de>
> 
> > 1. I can't change the Arabic characters to the font of DejaVu Sans
> > > Mono (or others). This wasn't a problem before.
> > 
> > What do you mean by "cannot change"?  What happens if you try?  Please
> > show the exact sequence of commands or Lisp code you used, and any
> > error messages or incorrect effects you see when you do that.
> I use the mouse with left click to chose  'Change Buffer Font'.
> I don't get any error message. Just: "Buffer-Face mode enabled".
> The Latin letters get their new font, but the Arabic ones don't.

This is not a bug: if the font you choose cannot support Arabic, Emacs
will fall back to the setup in the current fontset.  In general,
selecting a font only affects ASCII characters; it affects non-ASCII
characters only if the font can display them properly.

> > > Can Harfbuzz be a problem? In the older emacs version (maybe 3 or 4 years ago?) I never had these
> > > problems.
> > 
> > I don't know, because critical information is missing:
> > 
> >   . on what OS is that?
> Linux. I've tried Ubuntu and Arch.
> >   . what is the version of HarfBuzz you have installed?
> harfbuzz 4.4.1-1 
> >   . what is the text that is not displayed correctly? (please provide
> >     it as plain text that can be copied and examined, not as an image)
> Sorry. I forgot:
> (
> a-b-c-d
> 1234567
> س-س-س-س
> 1234567
> )

I don't think HarfBuzz is a problem in your case, but the font
probably is.

> >   . what does Emacs say when you go to the characters involved in this
> >     display and type "C-u C-x ="?
> Before changing the font:
> 
> position: 23 of 32 (69%), column: 6
> character: س‎ (displayed as س‎) (codepoint 1587, #o3063, #x633)
> charset: unicode (Unicode (ISO10646))
> code point in charset: 0x0633
> script: arabic
> syntax: w 	which means: word
> category: .:Base, R:Strong R2L, b:Arabic
> to input: type "C-x 8 RET 633" or "C-x 8 RET ARABIC LETTER SEEN"
> buffer code: #xD8 #xB3
> file code: #xD8 #xB3 (encoded by coding system utf-8-unix)
> display: by this font (glyph code):
> ftcrhb:-1ASC-Droid Serif-normal-normal-normal-*-13-*-*-*-*-0-iso10646-1 (#x0E)

So Emacs uses the Droid Serif font for Arabic, and I guess that's the
problem.

> 
> Character code properties: customize what to show
>   name: ARABIC LETTER SEEN
>   general-category: Lo (Letter, Other)
>   decomposition: (1587) ('س')
> ----
> After changing, or trying to change it:I get exactly the same output.
> 
> > 
> > In general DejaVu Sans is known as a problematic font for complex text
> > shaping (which is required for Arabic), so my advice is to use some
> > other font as the default.
> DejaVu Sans Mono was always ok. And often I need a monospaced font - do you know another one for Arabic?

Try the Amiri font, I'm told it is OK.  But you need to set that up in
the fontset; do not use Amiri as your default font.


[-- Attachment #2: org_plus6_textsize.png --]
[-- Type: image/png, Size: 9809 bytes --]

[-- Attachment #3: org_plus5_textsize.png --]
[-- Type: image/png, Size: 7382 bytes --]

  reply	other threads:[~2022-07-22 15:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-22  8:11 bug#56695: A new and old font problem with Arabic fr_ml
2022-07-22 11:08 ` Eli Zaretskii
     [not found]   ` <1658497265479.1589294.1e7fbe71a9c257912af2f6c3a3b45532d616817d@spica.telekom.de>
2022-07-22 14:18     ` Eli Zaretskii
2022-07-22 15:58       ` fr_ml [this message]
2022-07-22 16:21         ` Eli Zaretskii
2022-07-24  7:24           ` bug#56695: AW: " fr_ml
2022-07-24  8:58             ` Eli Zaretskii
2022-07-25 15:29               ` bug#56695: AW: " fr_ml
2022-07-25 16:06                 ` Eli Zaretskii
2022-07-25 20:46                   ` bug#56695: AW: " fr_ml
2022-08-13 21:58                   ` fr_ml
2022-08-14  6:20                     ` Eli Zaretskii
2022-08-14 12:11                       ` bug#56695: AW: " fr_ml

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=1658505514827.73776.682275763c1d9abc1bd4255a438e1cc56f74d095@spica.telekom.de \
    --to=fr_ml@t-online.de \
    --cc=56695@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.