From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59249 Path: news.gmane.org!not-for-mail From: Bernhard Rosensteiner Newsgroups: gmane.comp.tex.context Subject: Re: getting new font variants to work Date: Thu, 3 Jun 2010 14:09:48 +0200 Message-ID: <2FA4F24E-5558-44CB-88D5-14CACED64C84@gmail.com> References: <20100602223233.GA8009@urvas> <4C079793.4090309@uni-ulm.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1275567010 14815 80.91.229.12 (3 Jun 2010 12:10:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Jun 2010 12:10:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 03 14:10:08 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 1OK9FL-0001If-Kl for gctc-ntg-context-518@m.gmane.org; Thu, 03 Jun 2010 14:10:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D899FC9B49; Thu, 3 Jun 2010 14:10:02 +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 Y5KotpnLMHQA; Thu, 3 Jun 2010 14:09:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 57157C9B87; Thu, 3 Jun 2010 14:09:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E8723C9B49 for ; Thu, 3 Jun 2010 14:09:55 +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 4MA7qNvXJTE8 for ; Thu, 3 Jun 2010 14:09:50 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by balder.ntg.nl (Postfix) with ESMTP id CA064C9BA6 for ; Thu, 3 Jun 2010 14:09:50 +0200 (CEST) Original-Received: by fxm14 with SMTP id 14so38694fxm.14 for ; Thu, 03 Jun 2010 05:09:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=/oaMZHPvC9lXYabSdWKZm8pluKHKkEZ3tmpUxAe8/RY=; b=KtFTAEus11Y3dI4Is31hUWmNmXZfuscX9RurzCXeAdFjaIVQf8m/3Dd60tkh63X92R tD/0HGXWvvS+DqfV9FVn85b3WVknah/8HainXd0kegea3bqnOFyx1nX93T8pfYljMscO jb+94HHXG783kvrZ1JtzfdGdhyuB8FR8/esjg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=agKWbz3lZmdslWizdnPKAwSYqJCRt5JIX6Ie4oTaz3V0NF6LajhElG2v8BB7pY0+qo p6J1Lg1EGdew/ILt1YnJ0IwZht4VKPvodjAHmJPnQgnSajuYfhCAm/RNVlFul9yYFAsQ 3Vs3rzCfwS4asuPJxvouCryxPzudFaynzHVY4= Original-Received: by 10.223.72.156 with SMTP id m28mr10188774faj.26.1275566990058; Thu, 03 Jun 2010 05:09:50 -0700 (PDT) Original-Received: from 196-086-142-078.ascus.at ([78.142.86.196]) by mx.google.com with ESMTPS id 15sm57163310fad.22.2010.06.03.05.09.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 03 Jun 2010 05:09:49 -0700 (PDT) In-Reply-To: <4C079793.4090309@uni-ulm.de> X-Mailer: Apple Mail (2.1078) 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:59249 Archived-At: Am 03.06.2010 um 13:52 schrieb Michael Murphy: > 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]} when the rest if the typescript works the problem lies here: instead or additionally of \definealternativestyle[medium][\me][] use \definefontalternative[me] then the command \me should be available. the \definealternativestyle command is only for key value pairs in style= keys as far as i know best regards Bernhard ___________________________________________________________________________________ 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 ___________________________________________________________________________________