From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83715 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: Re: kerning with buggy libertine Date: Wed, 7 Aug 2013 10:08:43 +0200 Message-ID: <20130807080843.GA22003@phlegethon> References: <20130804134339.GA4609@phlegethon> <51FF7F95.1010800@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0995620905==" X-Trace: ger.gmane.org 1375862953 10637 80.91.229.3 (7 Aug 2013 08:09:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Aug 2013 08:09:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 07 10:09:16 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V6ynz-0004CA-Db for gctc-ntg-context-518@m.gmane.org; Wed, 07 Aug 2013 10:09:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B989B101E3; Wed, 7 Aug 2013 10:08:32 +0200 (CEST) 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 uqC6ZmXns651; Wed, 7 Aug 2013 10:08:27 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 22FD4101E7; Wed, 7 Aug 2013 10:08:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C30CA101E7 for ; Wed, 7 Aug 2013 10:08:25 +0200 (CEST) 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 uo4kbKJZoocH for ; Wed, 7 Aug 2013 10:08:15 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 49954101E3 for ; Wed, 7 Aug 2013 10:08:14 +0200 (CEST) Original-Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r7788t55025237 for ; Wed, 7 Aug 2013 10:08:56 +0200 Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal.urz.uni-heidelberg.de [129.206.100.176]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r7788sUh011686 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 7 Aug 2013 10:08:55 +0200 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r7788o62023506 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 7 Aug 2013 10:08:51 +0200 Original-Received: from localhost (p50844194.dip0.t-ipconnect.de [80.132.65.148]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id r7788nEF005427 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 7 Aug 2013 10:08:49 +0200 Mail-Followup-To: mailing list for ConTeXt users In-Reply-To: <51FF7F95.1010800@wxs.nl> X-Operating-System: Linux phlegethon 3.9.9-1-ARCH User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=129.206.210.211; country=DE; region=01; city=Heidelberg; latitude=49.4167; longitude=8.7000; http://maps.google.com/maps?q=49.4167,8.7000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07K9I8TDi - 902e52c8fcd8 - 20130807 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83715 Archived-At: --===============0995620905== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7 > On 8/4/2013 3:43 PM, Philipp Gesang wrote: > >Hi Hans, > > > >this is a bug report thanks to Khaled: > > > > http://tex.stackexchange.com/a/126650/14066 > > > >In short: the font loader applies the kerning of libertine > >version 5.3.0 even though this appears to be broken in the font. > >Context translation of the example: > > > > \definefontfeature [kerning] [mode=3Dnode,smcp=3Dyes,kern=3Dyes] > > \definefont [libertineserifsmallcaps] [file:LinLibertine_R.otf*kernin= g] > > \definefont [libertinesanssmallcaps] [file:LinBiolinum_R.otf*kerning] > > > > \def\demotext{Vacillate Vaccine Vapour Vanish Va...} > > > > \starttext > > {\libertineserifsmallcaps \demotext}\par > > {\libertinesanssmallcaps \demotext}\par > > \stoptext > > > >(Doesn=E2=80=99t occur in base mode.) The technical details are in the > >thread Khaled references. >=20 > \showotfcomposition{file:LinLibertine_R.otf*kerning}{+1}{Va} \page > \showotfcomposition{file:LinBiolinum_R.otf*kerning} {+1}{Va} \page >=20 > You need to be more explicit (which font, where to download the > problematic one, etc ... i downloaded the 5.3 version - i think - of > ll). In what sense is it broken in the font? It=E2=80=99s that version (5.3.0). To quote Jonathan Kew [1]: The problem arises because the first subtable includes the "V" (and "T") glyphs in its coverage (as first glyph of the pair), but then the a.sc and hyphen.sc glyphs are not included in the ClassDef2 table, so they map to class 0, for which the kerning is zero. [...] The description of ClassDefFormat2 says that "Any glyph not covered by a ClassRangeRecord is assumed to belong to Class 0". If that is the case, then I think this is a font bug: any first-glyph mentioned in a PairPosFormat2 subtable's coverage when ClassDef2 uses format 2 will, in effect, "shadow" all subsequent subtables, so the same first-glyph cannot be used again. And the follow up [2]: FWIW, testing LinLibertine in IE10 on Win8, I see the same behavior as in Firefox (using harfbuzz): the and pairs are NOT kerned. So I believe this supports the interpretation that this is a font bug, and we should -not- special-case Class0 as per the experimental harfbuzz patch. (In principle, a font could have real kerning values specified for , although it's most likely that class0 will always be used for the default do-nothing case.) Best, Philipp [1] http://lists.freedesktop.org/archives/harfbuzz/2013-August/003469.html [2] http://lists.freedesktop.org/archives/harfbuzz/2013-August/003470.html --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQEcBAEBCgAGBQJSAgCLAAoJEI7yfcKNwM1+Mz8IANbpKxBbrQ4rvuVyp/3gRKOI Wrs82tWXQNXoLgZHDLFuVG9tvfi28InLCeSTpYoIaiDsOijQpmKJlga27d0PX2Yw V/tOpehQ4FtZHq1CsCaXBhYCCknuG4QHtbKXAycNTrjB8t4O07uuanr7NHjL6VaF 1e11TtO2nYhy1o9fvPNmHPr0D/SL6LPbX9cqsLbBB1x2LPqfAM8WChBjfAKn+3LR zA5MKqWpJyoymA1nKoEWyCIwjQ3vuUCb4en82XZlbcd+t+YA54jlTCh87Ie+G/PM Dobln0ASOrQb7sIgtHcMrl7bfRK4ejWpqIXKwW0I79sg6dibHFgJZXXDserTpzs= =RW59 -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9-- --===============0995620905== 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 ___________________________________________________________________________________ --===============0995620905==--