From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/99832 Path: news.gmane.org!.POSTED!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Firstline problem with smallcaps Date: Fri, 12 Jan 2018 16:47:20 -0500 Message-ID: <9e1f67a9-6f23-f374-7fe9-5b9d0c7f90e4@rik.users.panix.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3547535231884840309==" X-Trace: blaine.gmane.org 1515793567 16580 195.159.176.226 (12 Jan 2018 21:46:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Jan 2018 21:46:07 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 12 22:46:02 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ea79A-0003Yp-9D for gctc-ntg-context-518@m.gmane.org; Fri, 12 Jan 2018 22:45:56 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 088728A1A84; Fri, 12 Jan 2018 22:47:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QeJ5SENN_WN0; Fri, 12 Jan 2018 22:47:37 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 38FD08A1A7F; Fri, 12 Jan 2018 22:47:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A44ED8A1A7F for ; Fri, 12 Jan 2018 22:47:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LzmbrZP3BXtS for ; Fri, 12 Jan 2018 22:47:35 +0100 (CET) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 0FA728A0C7E for ; Fri, 12 Jan 2018 22:47:25 +0100 (CET) Original-Received: from [192.168.201.10] (cpe-24-194-22-135.nycap.res.rr.com [24.194.22.135]) by mailbackend.panix.com (Postfix) with ESMTPSA id 1B48E2A20F for ; Fri, 12 Jan 2018 16:47:23 -0500 (EST) Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:99832 Archived-At: This is a multi-part message in MIME format. --===============3547535231884840309== Content-Type: multipart/alternative; boundary="------------234B606472CD90AEF75666DD" Content-Language: en-US This is a multi-part message in MIME format. --------------234B606472CD90AEF75666DD Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit When \setfirstline is used to set the first line of a paragraph in a small-cap style, the line is mis-set. This does not occur with every font and input, but occurs with most fonts and many inputs. The problem does not seem to be awakened by other styles (emboldened, italicized). \definefirstline[SC][alternative=line,style=\setfontfeature{smallcaps}]% or =\sc \definefirstline[BD][alternative=line,style=bold] \definefirstline[IT][alternative=line,style=italic] \setupbodyfont[termes,11pt]% requires font with small caps \starttext   \setfirstline[SC]   \startparagraph     \input montgomery   \stopparagraph   \setfirstline[BD]   \startparagraph     \input montgomery   \stopparagraph   \setfirstline[IT]   \startparagraph     \input montgomery   \stopparagraph \stoptext -- Rik --------------234B606472CD90AEF75666DD Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

When \setfirstline is used to set the first line of a paragraph in a small-cap style, the line is mis-set. This does not occur with every font and input, but occurs with most fonts and many inputs. The problem does not seem to be awakened by other styles (emboldened, italicized).

\definefirstline[SC][alternative=line,style=\setfontfeature{smallcaps}]% or =\sc
\definefirstline[BD][alternative=line,style=bold]
\definefirstline[IT][alternative=line,style=italic]
\setupbodyfont[termes,11pt]% requires font with small caps
\starttext
  \setfirstline[SC]
  \startparagraph
    \input montgomery
  \stopparagraph
  \setfirstline[BD]
  \startparagraph
    \input montgomery
  \stopparagraph
  \setfirstline[IT]
  \startparagraph
    \input montgomery
  \stopparagraph
\stoptext

--
Rik

--------------234B606472CD90AEF75666DD-- --===============3547535231884840309== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============3547535231884840309==--