From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85288 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 13:23:11 +0100 Message-ID: <28220.7768447281$1384691007@news.gmane.org> References: <528894b2.866f0e0a.230f.fffff2c8SMTPIN_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 1384690996 4125 80.91.229.3 (17 Nov 2013 12:23:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Nov 2013 12:23:16 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 17 13:23: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 1Vi1Nq-0004Qj-BL for gctc-ntg-context-518@m.gmane.org; Sun, 17 Nov 2013 13:23:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6A6C2101E8; Sun, 17 Nov 2013 13:23:21 +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 XeryOY6Zb9Wq; Sun, 17 Nov 2013 13:23:20 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D2BEC101E9; Sun, 17 Nov 2013 13:23:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 53C6F101E9 for ; Sun, 17 Nov 2013 13:23:19 +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 DXpi-O71oXwg for ; Sun, 17 Nov 2013 13:23:16 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id AFF10101E8 for ; Sun, 17 Nov 2013 13:23:16 +0100 (CET) Original-Received: from fep19.mx.upcmail.net (fep19.mx.upcmail.net [62.179.121.39]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAHCNB7W018764 for ; Sun, 17 Nov 2013 13:23:16 +0100 Original-Received: from edge01.upcmail.net ([192.168.13.236]) by viefep19-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20131117122311.EUO897.viefep19-int.chello.at@edge01.upcmail.net> for ; Sun, 17 Nov 2013 13:23:11 +0100 Original-Received: from emk ([78.102.140.101]) by edge01.upcmail.net with edge id qcPB1m0032BTW0m01cPB00; Sun, 17 Nov 2013 13:23:11 +0100 X-SourceIP: 78.102.140.101 In-Reply-To: X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac7jhoZhT/8TrX7zT7S4vz3AGmcp+wABYd7g Content-Language: cs X-Bayes-Prob: 0.0039 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=62.179.121.39; 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: 0VKOAnbdM - 1323570912fc - 20131117 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:85288 Archived-At: 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 (with the help of ConTeXt Reference Manual where I didn't notice something like this before). In the light of this all examples on that page could be switched rather to 'feature' based styling to emphasise the power of this feature :-) 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 ___________________________________________________________________________________