From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Interesting combining character issue Date: Fri, 05 Dec 2008 13:55:34 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1228452956 21830 80.91.229.12 (5 Dec 2008 04:55:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Dec 2008 04:55:56 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: James Cloos Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 05 05:56:59 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L8SkN-0002uu-5l for ged-emacs-devel@m.gmane.org; Fri, 05 Dec 2008 05:56:59 +0100 Original-Received: from localhost ([127.0.0.1]:42853 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8SjC-00070G-Eg for ged-emacs-devel@m.gmane.org; Thu, 04 Dec 2008 23:55:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L8Sj8-000709-KX for emacs-devel@gnu.org; Thu, 04 Dec 2008 23:55:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L8Sj7-0006zx-5E for emacs-devel@gnu.org; Thu, 04 Dec 2008 23:55:42 -0500 Original-Received: from [199.232.76.173] (port=37615 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8Sj7-0006zu-17 for emacs-devel@gnu.org; Thu, 04 Dec 2008 23:55:41 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:43430) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L8Sj6-0002JM-9T for emacs-devel@gnu.org; Thu, 04 Dec 2008 23:55:40 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id mB54tZWI000450; Fri, 5 Dec 2008 13:55:35 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id mB54tZoE024910; Fri, 5 Dec 2008 13:55:35 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id mB54tYxK012432; Fri, 5 Dec 2008 13:55:34 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1L8Sj0-00016p-5t; Fri, 05 Dec 2008 13:55:34 +0900 In-reply-to: (message from James Cloos on Thu, 04 Dec 2008 08:33:09 -0500) X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.aist.go.jp id mB54tZWI000450 X-detected-operating-system: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:106593 Archived-At: In article , James Cloos writes: Kenichi> What is shown when you move point on the first cahracter of Kenichi> that sequence (U+ 04E8) and type C-u C-x =3D? [...] > Composed with the following character(s) "=CC=84" using this font: > xft:-unknown-DejaVu Sans Mono-normal-normal-normal-*-14-*-*-*-m-0-iso= 10646-1 > by these glyphs: > [0 1 1256 978 8 0 8 11 1 nil] > [0 1 772 647 -9 2 6 10 -9 [0 0 -9]] That is different from my case. I got this with the same font: Composed with the following character(s) "=CC=84" using this font: xft:-unknown-DejaVu Sans Mono-normal-normal-normal-*-14-*-*-*-m-0-iso10= 646-1 by these glyphs: [0 1 1256 978 8 0 8 11 1 nil] [0 1 772 647 8 2 6 10 -9 [-8 -3 0]] The last vector is the information about the glyph of U+304 (COMBINING MACRON). Yours says that the glyph width is -9 (5th element), which is a little bit strange. Please show me these info: % freetype-config --version % libotf-config --version % m17n-config --version Mine are 9.18.3, 0.9.8, 1.5.3 respectively. And, please run the attached program as this: % fttest .../DejaVuSansMono.ttf 647 I got this: width=3D8, lbearing=3D2, rbearing=3D6, acsent=3D10, descent=3D-9 --- Kenichi Handa handa@ni.aist.go.jp ----fttest.c-------------------------------------------------------- #include #include #include #include FT_FREETYPE_H #include FT_TRUETYPE_TABLES_H int main (int argc, char **argv) { FT_Library library; FT_Face ft_face; FT_Glyph_Metrics *m; if (argc < 3) { printf ("Usage: fttest FONTFILE CHAR\n"); exit (1); } FT_Init_FreeType (&library); FT_New_Face (library, argv[1], 0, &ft_face); FT_Set_Pixel_Sizes (ft_face, 14, 14); FT_Load_Glyph (ft_face, atoi (argv[2]), FT_LOAD_DEFAULT); m =3D &ft_face->glyph->metrics; printf ("width=3D%d, lbearing=3D%d, rbearing=3D%d, acsent=3D%d, descent= =3D%d\n", (int) (m->horiAdvance >> 6), (int) (m->horiBearingX >> 6), (int) ((m->horiBearingX + m->width) >> 6), (int) (m->horiBearingY >> 6), (int) ((m->height - m->horiBearingY) >> 6)); exit (0); }