From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59248 Path: news.gmane.org!not-for-mail From: Michael Murphy Newsgroups: gmane.comp.tex.context Subject: getting new font variants to work Date: Thu, 03 Jun 2010 13:52:51 +0200 Message-ID: <4C079793.4090309@uni-ulm.de> References: <20100602223233.GA8009@urvas> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1275566004 11158 80.91.229.12 (3 Jun 2010 11:53:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Jun 2010 11:53:24 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 03 13:53:23 2010 connect(): No such file or directory 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 1OK8zC-0001Zy-Vi for gctc-ntg-context-518@m.gmane.org; Thu, 03 Jun 2010 13:53:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8DC8AC9B10; Thu, 3 Jun 2010 13:53:21 +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 ZWqxqCyUCEaR; Thu, 3 Jun 2010 13:53:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A9FF9C9B49; Thu, 3 Jun 2010 13:53:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ECBB5C9B49 for ; Thu, 3 Jun 2010 13:53:14 +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 I957qC+Tc1Sg for ; Thu, 3 Jun 2010 13:53:03 +0200 (CEST) Original-Received: from mail.uni-ulm.de (mail.uni-ulm.de [134.60.1.11]) by balder.ntg.nl (Postfix) with ESMTP id 6DC4DC9B10 for ; Thu, 3 Jun 2010 13:53:03 +0200 (CEST) Original-Received: from [192.168.178.21] (p4FEC52D2.dip.t-dialin.net [79.236.82.210]) (authenticated bits=0) by mail.uni-ulm.de (8.14.3/8.14.2) with ESMTP id o53BquwG021089 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 3 Jun 2010 13:53:01 +0200 (MEST) User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-GB; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 In-Reply-To: <20100602223233.GA8009@urvas> X-DCC-SIHOPE-DCC-3-Metrics: poseidon 1085; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new 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:59248 Archived-At: Hi all, I'd like to get some new font variants defined, such as Medium, Semibold, etc. What I have so far is the following. \definealternativestyle[medium][\me][] \starttypescript [serif] [minionpro] ... \definefontsynonym[MinionPro-Medium][name:MinionPro-Medium] ... \stoptypescript \starttypescript [serif] [minionpro] [name] ... \definefontsynonym[SerifMedium][MinionPro-Medium] ... \stoptypescript \starttypescript [serif] [regular] [size] \definebodyfont [10pt, 11pt, 12pt] [rm] [% it=SerifItalic sa 1, bi=SerifBoldItalic sa 1, bf=SerifBold sa 1, tf=SerifRegular sa 1, me=SerifMedium sa 1] \stoptypescript then I set up the font with \definetypeface [adobe] [rm] [serif] [minionpro] [regular] \setupbodyfont[11pt] This all looks fine, but then {\me This should be medium} doesn't work, and neither does \me{...} or \medium{...}. I should say that \definedfont[SerifMedium] does work though. How can I fix this, short of \def\me{\definedfont[SerifMedium]} -- Michael Murphy ___________________________________________________________________________________ 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 ___________________________________________________________________________________