From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: mituharu@math.s.chiba-u.ac.jp Newsgroups: gmane.emacs.devel Subject: Re: Cairo font selection for Ethiopic Date: Fri, 21 Jun 2019 19:52:36 +0900 Message-ID: <7b3affad6a618d027a13322a7c9f0a51.squirrel@weber.math.s.chiba-u.ac.jp> References: <87pnn8cawu.fsf@rub.de> <87zhmbicrk.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain;charset=iso-2022-jp Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="6099"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: SquirrelMail/1.4.22-5.el6 Cc: emacs-devel@gnu.org To: "Stephen Berman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 21 12:53:05 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1heHAH-0001NU-Fd for ged-emacs-devel@m.gmane.org; Fri, 21 Jun 2019 12:53:05 +0200 Original-Received: from localhost ([::1]:59112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1heHAG-0000Zl-By for ged-emacs-devel@m.gmane.org; Fri, 21 Jun 2019 06:53:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39776) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1heH9t-0000W6-QB for emacs-devel@gnu.org; Fri, 21 Jun 2019 06:52:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1heH9q-0003P0-90 for emacs-devel@gnu.org; Fri, 21 Jun 2019 06:52:41 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:55676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1heH9p-0003AR-SG for emacs-devel@gnu.org; Fri, 21 Jun 2019 06:52:38 -0400 Original-Received: from weber.math.s.chiba-u.ac.jp (weber [192.168.32.4]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id BBBF1F08D5; Fri, 21 Jun 2019 19:52:34 +0900 (JST) (envelope-from mituharu@math.s.chiba-u.ac.jp) Original-Received: from 223.218.37.97 (SquirrelMail authenticated user mituharu) by weber.math.s.chiba-u.ac.jp with HTTP; Fri, 21 Jun 2019 19:52:36 +0900 In-Reply-To: <87zhmbicrk.fsf@gmx.net> X-Priority: 3 (Normal) Importance: Normal X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 133.82.132.2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:238001 Archived-At: > On Fri, 21 Jun 2019 10:54:03 +0900 YAMAMOTO Mitsuharu > wrote: > >> On Fri, 21 Jun 2019 04:30:09 +0900, >> Stephen Berman wrote: >>> >>> I don't know if this is a bug or just the way Cairo works. On two >>> different GNU/Linux systems I have built Emacs both --with-cairo and >>> without. The non-Cairo builds use Xft as the font backend. On those >>> builds the Ethiopic scripts (Amharic and Tigrinya) in HELLO are >>> displayed with the Goha-Tibeb Zemen font. In the Cairo builds this >>> font >>> is not used for these scripts; instead, on one system they are >>> displayed >>> with a mix of GNU Unifont and mutt-clearlyu, and on the other system, >>> which lacks these fonts, only hex boxes are displayed. Is there >>> something about Goha-Tibeb Zemen that is incompatible with Cairo? >> >> Goha-Tibeb Zemen does not have glyphs for ASCII printables that the >> ftcr font backend relies on computing minimum/average/space width when >> opening the font. The patch below should simulate the Xft behavior. > > Thanks. I rebuilt Emacs --with-cairo with this patch but the Ethiopic > scripts in HELLO are still not displayed with Goha-Tibeb Zemen but also > not with the same fonts as before: now they are uniformly displayed wit= h > > -Misc-Misc Fixed Wide-normal-normal-normal-ja-13-*-*-*-c-120-iso10646-1 > > Is this the intended result of the patch? The patch enables us to use the Goha-Tibeb Zemen font on cairo build. If you manually specify the font for Ethiopic characters, then they should be displayed with the font. (let ((script 'ethiopic) (coverage)) (map-char-table #'(lambda (range val) (when (eq val script) (if (consp range) (setq range (cons (car range) (cdr range)))) (push range coverage))) char-script-table) (dolist (range coverage) (set-fontset-font t range (font-spec :family "Goha-Tibeb Zemen")))) Whether it is selected automatically in the default setting is another problem and depends on several factors. What are the outputs of the ldd command for both non-cairo and cairo builds? YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp