From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: utf-8 thai character display issue? Date: Fri, 05 Jun 2020 23:34:16 +0300 Message-ID: <83lfl19rqv.fsf@gnu.org> References: <873679v15t.fsf@dstar.dstar.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="103285"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 05 22:35:04 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jhJ3P-000QkC-Gg for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 05 Jun 2020 22:35:03 +0200 Original-Received: from localhost ([::1]:59456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhJ3O-0006FM-Fw for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 05 Jun 2020 16:35:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhJ2p-0006DO-EW for help-gnu-emacs@gnu.org; Fri, 05 Jun 2020 16:34:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46232) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhJ2p-00029H-5E for help-gnu-emacs@gnu.org; Fri, 05 Jun 2020 16:34:27 -0400 Original-Received: from [176.228.60.248] (port=3659 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jhJ2o-00081n-9n for help-gnu-emacs@gnu.org; Fri, 05 Jun 2020 16:34:26 -0400 In-Reply-To: <873679v15t.fsf@dstar.dstar.net> (message from scole_mail on Fri, 05 Jun 2020 11:05:18 -0700) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123249 Archived-At: > From: scole_mail > Date: Fri, 05 Jun 2020 11:05:18 -0700 > > I am sometimes having trouble with displaying and entering a specific > thai character ำ "THAI CHARACTER SARA AM". > > If that character follows some other thai characters or I try to type it > in directly following some other thai character it won't display > properly in the buffer. It looks like there is no character there. > > I know actually it is in the buffer because I can get the properties of > it even though it is not being displayed. Here are 2 example words that > have issues on my system > > กำลัง (ing) > น้ำ (water) > > The 2nd word is always not displayed correctly. The first word is > sometimes displayed correctly depending on what other thai text files I > may have visited early. I have tried using and switching various thai > fonts and sizes, but it seems like once the issue appears changing or > resizing the fonts never helps. > > My emacs version is > GNU Emacs 26.3 (build 1, x86_64--netbsd, GTK+ Version 3.24.14) of > 2020-05-31 > I also use this version of emacs built on macos and it doesn't have the > problem. This sounds like a problem with the text shaping engine your build is using on NetBSD. (you didn't give the details of the build, so I cannot know which shape engine is being used, but I'm guessing its libflt.) Try upgrading to Emacs 27, and make sure it is built with HarfBuzz support (the latest pretest can be downloaded from alpha.gnu.org).