From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64019 Path: news.gmane.org!not-for-mail From: Khaled Hosny Newsgroups: gmane.comp.tex.context Subject: Re: Using Bold SmallCaps in LuaTeX - typescript Date: Mon, 29 Nov 2010 14:41:27 +0200 Message-ID: <20101129124127.GB3769@khaled-laptop> References: <201011290029.07188.metan0r@gmx.de> <201011291240.09836.metan0r@gmx.de> <201011291327.26307.metan0r@gmx.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291034512 18188 80.91.229.12 (29 Nov 2010 12:41:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 29 Nov 2010 12:41:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 29 13:41:47 2010 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.69) (envelope-from ) id 1PN33C-0000Rw-6u for gctc-ntg-context-518@m.gmane.org; Mon, 29 Nov 2010 13:41:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D1EBDCA881; Mon, 29 Nov 2010 13:41:44 +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 4ESuNoPrBiGx; Mon, 29 Nov 2010 13:41:41 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D993CCA882; Mon, 29 Nov 2010 13:41:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 90CC8CA882 for ; Mon, 29 Nov 2010 13:41:40 +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 5jeDUh18kx2A for ; Mon, 29 Nov 2010 13:41:38 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 07F7DCA881 for ; Mon, 29 Nov 2010 13:41:38 +0100 (CET) Original-Received: from mail-ey0-f169.google.com (mail-ey0-f169.google.com [209.85.215.169]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oATCfbJN013500 for ; Mon, 29 Nov 2010 13:41:37 +0100 Original-Received: by eydd26 with SMTP id d26so2031752eyd.14 for ; Mon, 29 Nov 2010 04:41:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=uefackOMuP7+aaeP0ve0REMIN4Nd8AIyl4iMiq58tUk=; b=qCGoiacixcoTt1DlIAX4SYlVALZOGewn3YSMCVSXM7dpTJyBf2TT4CwSqjBFJ9Ytja jA2AnNlfXrIoc0iSTgc0wKan9iwI/Clt3q5lsyoxngDaZI2HAuafuYlfXfkLcrA5cBoB AJE0AqKuh6FjMOeZ1+GNvnGbstN9K8A765UgQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=JAYmjrmznT8eB7qAwAIwwTA+braZfsdSWyUGysD30DGOWXg0Q4brd/OeRUMoTH7C0t MunxVd+3jYsbk1Skmktclrb7zZ98nr4w6MKWqE36gsN4DBKf4jYiOelaFYZlfO1v/uwC ouS8w03Vlf6BEcEQ2dlpvBBVbYwuYFGPsmMe8= Original-Received: by 10.213.106.16 with SMTP id v16mr1130012ebo.29.1291034496659; Mon, 29 Nov 2010 04:41:36 -0800 (PST) Original-Received: from localhost ([41.238.233.153]) by mx.google.com with ESMTPS id v51sm5106965eeh.4.2010.11.29.04.41.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 29 Nov 2010 04:41:35 -0800 (PST) Content-Disposition: inline In-Reply-To: <201011291327.26307.metan0r@gmx.de> User-Agent: Mutt/1.5.20 (2009-06-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06DB0FBWw - c03cf0a95ff2 - 20101129 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:64019 Archived-At: On Mon, Nov 29, 2010 at 01:27:25PM +0100, Ch. B. wrote: > Am Montag, 29. November 2010, um 12:50:01 schrieb Florian Wobbe: > > On Nov 29, 2010, at 12:40 , Ch. B. wrote: > > > Am Montag, 29. November 2010, um 09:17:10 schrieb Florian Wobbe: > > >> On Nov 29, 2010, at 00:29 , ... wrote: > > >>> Good evening! > > >>> > > >>> First of all, I'm new to this list and also a context/luatex newbe. I > > >>> have some experience with LaTeX. > > >>> I want to use a font (Neutraface2) in my documents and I'm struggeling > > >>> with the typescript. I'm not able to get bold SmallCaps working (the > > >>> bold face .otf file has the feature smcp, I checked). > > >>> I tried various combinations and variations of \bf \sc in my document. > > >>> It gives me bold OR smallcaps, but not bold AND smallcaps. Whats wrong > > >>> here? Can someone give me an example typescript that I could modify to > > >>> fit the Neutraface2 font? My attempt to make one is attached. > > >>> > > >>> Greetings, > > >>> Chris > > >> > > >> Hi Chris, > > >> > > >> it does not work for pagella either. Did you try \setff{smallcaps} \bf > > >> instead? > > >> > > >> \usetypescript[pagella] > > >> \setupbodyfont[pagella] > > >> > > >> \starttext > > >> {\setff{smallcaps} This is in {\bf bold} SmallCaps} (works). > > >> {\sc This is in {\bf bold} SmallCaps} (does not). > > >> \stoptext > > >> > > >> Florian > > > > > > Hi Florian, > > > > > > that does work, thank you very much. > > > I assume the \setff means something like set font feature. If so, I > > > could shorten my typescript and only specify the 4 main font faces > > > (regular, bold italic, bold-italic) since the fonts all have all the > > > opentype features i need (onum & smcp etc.) And these can be accessed > > > via \setff{feature}, I guess. > > > > Yes, you can define for instance > > > > \definefontfeature[dlig][default][dlig=yes] % Discretionary Ligatures: > > Activates uncommon ligatures > > \definefontfeature[frac][default][frac=yes,numr=yes] % Fractions e.g. 3/4 > > \definefontfeature[sups][default][sups=yes] % Superscript > > \definefontfeature[subs][default][subs=yes] % Subscript > > > > and access the font features with \setff{dlig}, \setff{subs} etc. > > > > Florian > > Wonderfull! > I'm starting to get the hang of it. Even the stylistic sets work like a charm. > I've attached the output file in case you want to have a look at what I'm doing > here. > Now one last question would be: How can I insert a certain character with its > opentype name? For example \insertopentypecharacter{f_f_h.alt}. That would be \fontchar{f_f_h.alt} I think Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___________________________________________________________________________________ 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 ___________________________________________________________________________________