From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85290 Path: news.gmane.org!not-for-mail From: "honyk" Newsgroups: gmane.comp.tex.context Subject: Re: Support for Bold Small Caps font alternative Date: Sun, 17 Nov 2013 15:33:15 +0100 Message-ID: <36764.5129132599$1384698806@news.gmane.org> References: <528894b2.866f0e0a.230f.fffff2c8SMTPIN_ADDED_BROKEN@mx.google.com> <5288b53c.09d20e0a.5ff0.ffffaea5SMTPIN_ADDED_BROKEN@mx.google.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1384698796 13966 80.91.229.3 (17 Nov 2013 14:33:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Nov 2013 14:33:16 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 17 15:33:22 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 1Vi3Pd-0001ch-RV for gctc-ntg-context-518@m.gmane.org; Sun, 17 Nov 2013 15:33:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CED0D101F1; Sun, 17 Nov 2013 15:33:20 +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 TUsnBgu15l4E; Sun, 17 Nov 2013 15:33:19 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 36E2F101F2; Sun, 17 Nov 2013 15:33:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D1E8A101F2 for ; Sun, 17 Nov 2013 15:33:17 +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 dU7KuG1V5kNA for ; Sun, 17 Nov 2013 15:33:16 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id BE977101F1 for ; Sun, 17 Nov 2013 15:33:16 +0100 (CET) Original-Received: from fep21.mx.upcmail.net (fep21.mx.upcmail.net [62.179.121.41]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAHEXFJr023680 for ; Sun, 17 Nov 2013 15:33:16 +0100 Original-Received: from edge01.upcmail.net ([192.168.13.236]) by viefep21-int.chello.at (InterMail vM.8.01.05.13 201-2260-151-135-20130320) with ESMTP id <20131117143315.EHK18467.viefep21-int.chello.at@edge01.upcmail.net> for ; Sun, 17 Nov 2013 15:33:15 +0100 Original-Received: from emk ([78.102.140.101]) by edge01.upcmail.net with edge id qeZE1m00l2BTW0m01eZFAP; Sun, 17 Nov 2013 15:33:15 +0100 X-SourceIP: 78.102.140.101 In-Reply-To: X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac7jlLdIjRQHR8DQSAOigJ5AQE8yHgACH0rg Content-Language: cs X-Bayes-Prob: 0.0048 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=62.179.121.41; country=AT; latitude=47.3333; longitude=13.3333; http://maps.google.com/maps?q=47.3333,13.3333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TKOCxflH - f516405bfdc0 - 20131117 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:85290 Archived-At: On 2013-11-17 Wolfgang Schuster wrote: > Am 17.11.2013 um 13:23 schrieb honyk: > > On 2013-11-17 Wolfgang Schuster wrote: > >> Am 17.11.2013 um 11:04 schrieb honyk: > >>> > >>> in my document I combine both regular and bold small caps. > >>> As there is no predefined alternative for bold small caps variant, > >>> moreover, combining bold style and small caps has no effect, I've > >>> had to override an unused one: > >>> > >>> \definefontsynonym[SerifCaps][file:pala.ttf][features=small-caps] > >>> > >>> \definefontsynonym[SerifBoldSlanted][file:palab.ttf] > >>> [features=small-caps] % bold caps > >>> > >>> Now I can switch styles using \sc and \bs. > >>> > >>> It would be nice to have a dedicated alternative for this. Or am I > >>> missing something? > >> > >> When you use a opentype font you can enable the small caps feature > >> with the \feature command, there is no need for an additional font > >> synonym. > >> > >> \setupbodyfont[pagella] > >> > >> \starttext > >> > >> Text {\feature[+][f:smallcaps]Text} {\bf Text > >> {\feature[+][f:smallcaps]Text}} > >> > >> Text \smallcaps{Text} \bold{Text \smallcaps{Text}} > >> > >> \stoptext > > > > Thanks for pointing me to this nice feature! This is even more > > robust. > > > > All my font definitions are based on this example > > http://wiki.contextgarden.net/Palatino_Linotype_under_MKIV > > You can save a few lines in the font setup when you the new simplefonts > code (works only with a recent beta). > > \definefontfamily[mainface][rm][Palatino > Linotype][features={default,quality}] > > \setupbodyfont[mainface] > What a great improvement! In sum 4 basic + 2 complementary (smallcaps, oldstyle) styles out-of-the-box thanks to this simple definition! Moreover, these basic and complementary ones can be combined easily. Other OTF features needs to be declared though: \definefontfeature[f:superscript][sups=yes] and then used as written above: 25 m{\feature[+][f:superscript]2} But it is not so big deal. I suggest removing all font styles related descriptions in manuals, wiki pages to some special place marked as obsolete and replace it with this simple approach ending with a small note that if this is not applicable, there are other, but deprecated, ways - with the appropriate hyperlink.. Jan ___________________________________________________________________________________ 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 ___________________________________________________________________________________