From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78572 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Defining a title font. Date: Thu, 4 Oct 2012 18:19:48 +0200 Message-ID: References: <20121002173838.30205e71@sda3.wexfordpress.net> <5BD58520-7B2D-4214-9817-D7FBC8F4DCE3@gmail.com> <20121004120331.447d58df@sda3.wexfordpress.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.1 \(1498\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1349391586 27708 80.91.229.3 (4 Oct 2012 22:59:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Oct 2012 22:59:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 05 00:59:50 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TJtjZ-0005UY-7T for gctc-ntg-context-518@m.gmane.org; Fri, 05 Oct 2012 00:17:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6D21810261; Thu, 4 Oct 2012 18:19:59 +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 kmIcpqB3B1r3; Thu, 4 Oct 2012 18:19:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 472F410210; Thu, 4 Oct 2012 18:19:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 16C6810210 for ; Thu, 4 Oct 2012 18:19:56 +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 ACsvySuomoAY for ; Thu, 4 Oct 2012 18:19:55 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 23D65101F4 for ; Thu, 4 Oct 2012 18:19:55 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q94GJrVI012775 for ; Thu, 4 Oct 2012 18:19:54 +0200 Original-Received: by mail-bk0-f41.google.com with SMTP id jm1so486952bkc.14 for ; Thu, 04 Oct 2012 09:19:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=4J8iYujKDMs4/fLXCU8vHaBZLphJmOBy4sS/5EftRnM=; b=QH+13ywatEAc4bwOQw0QcQflBLyFO7erE3GXDTkhtV9fSsQbfv4Nr/TOhcpTipahEE jeDu8s99QMsZeOGBOpcZck/kk8I2CSAvsdg21oOQCASglnD0/r+JzNENNfUBID2+uIIR g/wZRROEzFb05qM0qv/JFbV/C6vB7GEyWe2HwG7htfLg4Wgg4j6VGS8DdArmjPwZPwUY G0YbLT3xgKmI0zePJyntsdJ3cPAhLBPOhK/C0r28sGRNtOcFnji6/7/OGdQ9lswchvlD bv4ql87cD0PE/JzUIQ8b4RNaBVACGLyPsYS7Ax+HEMayauEGWb6X7Bpt9LQ9WcjknziN IS2A== Original-Received: by 10.204.147.89 with SMTP id k25mr1844012bkv.127.1349367593711; Thu, 04 Oct 2012 09:19:53 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbe6a8e.pool.mediaWays.net. [77.190.106.142]) by mx.google.com with ESMTPS id x13sm6178340bkv.16.2012.10.04.09.19.51 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 04 Oct 2012 09:19:52 -0700 (PDT) In-Reply-To: <20121004120331.447d58df@sda3.wexfordpress.net> X-Mailer: Apple Mail (2.1498) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; 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: 0QI74jS6s - 32fa154693bf - 20121004 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:78572 Archived-At: Am 04.10.2012 um 18:03 schrieb john Culleton : > On Wed, 3 Oct 2012 10:45:39 +0200 > Wolfgang Schuster wrote: > >> >>> >> The command ___ mkluatexfontdb___ creates a font database for LaTeX >> (or more concrete the luaotfload package) but context has always used >> it___s own font database. >> >> To update the font database for context you have to call ___mtxrun >> --script fonts --reload___ but the script searches for system fonts >> only on windows and mac machines. When you___re working on a linux >> system you have to set the ___OSFONTDIR___ variable first. >> >> Read also this: >> http://wiki.contextgarden.net/Fonts_in_LuaTeX#Building_the_font_database >> >> Wolfgang >> > followed the advice in the wiki but with modifications. On my > Slackware single-user system the OTF fonts are in > /usr/share/fonts/OTF > So my Context script now contains just two commands: > > export OSFONTDIR=/usr/share/fonts/OTF > context $1 > > And the title.tex file now looks like this: > > ------------------------------------ > \usemodule[simplefonts] > \definefont [titlefont][MyriadPro-Bold at 70bp] > \definefont [subtitle][MyriadPro-Bold at 25bp] > \startstandardmakeup > \titlefont > \centerline{Scribus} > \vskip 10pt > \subtitle > \centerline {for} > \vskip 10pt > \titlefont > \centerline{Book Covers} > \subtitle > > \vfil > \centerline{Free Publishing Software Series} > \vfil > \rm > \stopstandardmakeup I changed your mixed code into ConTeXt code: \definefont [titlefont] [MyriadPro-Bold*default at 70bp] \definefont [subtitle] [MyriadPro-Bold*default at 25bp] \starttext \startstandardmakeup[align=middle] \startstyle[titlefont] Scribus \blank[10pt] \style[subtitle]{for} \blank[10pt] Book Covers \stopstyle \vfil \style[subtitle]{Free Publishing Software Series} \vfil \stopstandardmakeup \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________