From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55274 Path: news.gmane.org!not-for-mail From: Lutz Haseloff Newsgroups: gmane.comp.tex.context Subject: Re: lower case "a" incompatible with hanging Date: Mon, 21 Dec 2009 09:20:58 +0100 Message-ID: References: <14E3B546-4FE4-4A0B-925F-9B656DFED5D7@gmail.com> <4B2CBF95.3020309@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0394445512==" X-Trace: ger.gmane.org 1261383702 11869 80.91.229.12 (21 Dec 2009 08:21:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Dec 2009 08:21:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 21 09:21:35 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NMdWJ-0000y5-EV for gctc-ntg-context-518@m.gmane.org; Mon, 21 Dec 2009 09:21:35 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 518BCC9C85; Mon, 21 Dec 2009 09:21:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tRZjlWzKTSTd; Mon, 21 Dec 2009 09:21:13 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 33FEDC9C7C; Mon, 21 Dec 2009 09:21:13 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 543A6C9C7C for ; Mon, 21 Dec 2009 09:21:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id GRxXZxS1sR6L for ; Mon, 21 Dec 2009 09:20:59 +0100 (CET) Original-Received: from mail-bw0-f220.google.com (mail-bw0-f220.google.com [209.85.218.220]) by balder.ntg.nl (Postfix) with ESMTP id 1FE4CC9B91 for ; Mon, 21 Dec 2009 09:20:58 +0100 (CET) Original-Received: by bwz20 with SMTP id 20so3274786bwz.34 for ; Mon, 21 Dec 2009 00:20:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=EnKDIY/bynvg7SVg8U0XWLKK4AoDYlW9C/sd47MPQJE=; b=M8kDj9UtS+cSTFAA/4In94KXDwjRTI3/KOfczH9s/6Wywwq5sO5bZVtgFouoC9gu3d SXcdHPaKrCOa8HMD2K5CP1ML2HMvcsrN5ftNgumguLFHE8YZ7VGiTXiiefJQwlngk9Tf //szawu7xTjIkzpm+d78/tc5fRb61j4GqkSzg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=SaelEWdxq3LmXItevEO0Eus4zQWC3FGqf1rhLh1xsTrAnbZkJGWhG1q4US7spVfTTs EhDPphEXNjZEiCnGJkE34v/rc/p7iKqACDTA3ktb4N1OfMiIlPESY0fxAQ+oTLyi44sf iK1cLGqY0lmgXjKQ+FfvhYQzJa3D03n7NJExM= Original-Received: by 10.204.152.4 with SMTP id e4mr4506318bkw.169.1261383658616; Mon, 21 Dec 2009 00:20:58 -0800 (PST) In-Reply-To: <4B2CBF95.3020309@elvenkind.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:55274 Archived-At: --===============0394445512== Content-Type: multipart/alternative; boundary=0015175df034e5b83d047b38c4d8 --0015175df034e5b83d047b38c4d8 Content-Type: text/plain; charset=UTF-8 2009/12/19 Taco Hoekwater > Hi, > > This was a bug in luatex: the function that copies the font > information from the base font to the expanded font did not > copy the last glyph at all. There is a one-character patch to > trunk/source/texk/web2c/luatexdir/font/texfont.c: > > > @@ -1094,7 +1094,7 @@ > memcpy(math_param_base(k), math_param_base(f), i); > } > > - for (i = 0; i < font_tables[f]->charinfo_count; i++) { > + for (i = 0; i <= font_tables[f]->charinfo_count; i++) { > ci = copy_charinfo(&font_tables[f]->charinfo[i]); > font_tables[k]->charinfo[i] = *ci; > } > > And that fixes it. > > The only oddness with this particular font is that the 'a' happens > to be its last glyph in the ordering of the glyph implementations > inside the otf file. Usually, the last of those is something odd > like an alternate or a designer' logo, which is probably why nobody > noticed before. > > > Lutz Haseloff wrote: > >> Hi Michael, >> >> Your file works here without problems with the same ConTeXt and >> LuaTeX, Version beta-0.47.0-2009121623. >> > > That's weird, did you use Michaels font? > > I don't think so: My OctavianMTStd.otf: Version 2.040;PS 002.000;honconv 1.0.51;makeotf.lib 2.0.18671 Greetings Lutz > Best wishes, > Taco > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > --0015175df034e5b83d047b38c4d8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

2009/12/19 Taco Hoekwater <taco@elvenkind.com>
Hi,

This was a bug in luatex: the function that copies the font
information from the base font to the expanded font did not
copy the last glyph at all. There is a one-character patch to
trunk/source/texk/web2c/luatexdir/font/texfont.c:


@@ -1094,7 +1094,7 @@
=C2=A0 =C2=A0 =C2=A0 =C2=A0 memcpy(math_param_base(k), math_param_base(f),= i);
=C2=A0 =C2=A0 }

- =C2=A0 =C2=A0for (i =3D 0; i < font_tables[f]->charinfo_count; i++)= {
+ =C2=A0 =C2=A0for (i =3D 0; i <=3D font_tables[f]->charinfo_count; i= ++) {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ci =3D copy_charinfo(&font_tables[f]->c= harinfo[i]);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 font_tables[k]->charinfo[i] =3D *ci;
=C2=A0 =C2=A0 }

And that fixes it.

The only oddness with this particular font is that the 'a' happens<= br> to be its last glyph in the ordering of the glyph implementations
inside the otf file. Usually, the last of those is something odd
like an alternate or a designer' logo, which is probably why nobody
noticed before.


Lutz Haseloff wrote:
Hi Michael,

Your file works here without problems with the same ConTeXt and
LuaTeX, Version beta-0.47.0-2009121623.

That's weird, did you use Michaels font?


I don't think so:

My OctavianMTStd.otf= :
Version 2.040;PS 002.000;honconv 1.0.51;makeotf.lib 2.0.18671

<= br>Greetings Lutz

=C2=A0
Best wishes,
Taco

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =C2=A0: http= ://www.pragma-ade.nl / http://tex.aanhet.net
archive =C2=A0: http://foundry.supelec.fr/projects/contextrev/
wiki =C2=A0 =C2=A0 : http://contextgarden.net
___________________________________________________________________________= ________

--0015175df034e5b83d047b38c4d8-- --===============0394445512== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0394445512==--