From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78549 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Defining a title font. Date: Wed, 3 Oct 2012 10:45:39 +0200 Message-ID: <5BD58520-7B2D-4214-9817-D7FBC8F4DCE3@gmail.com> References: <20121002173838.30205e71@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: multipart/mixed; boundary="===============0875343782==" X-Trace: ger.gmane.org 1349253969 10196 80.91.229.3 (3 Oct 2012 08:46:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Oct 2012 08:46:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 03 10:46:15 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 1TJKaW-0006AL-LT for gctc-ntg-context-518@m.gmane.org; Wed, 03 Oct 2012 10:45:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B1E1C101E8; Wed, 3 Oct 2012 10:45:46 +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 2CaeqJmeiWB4; Wed, 3 Oct 2012 10:45:44 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 623AF101F3; Wed, 3 Oct 2012 10:45:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 55934101F3 for ; Wed, 3 Oct 2012 10:45:43 +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 AKjyOUkIp8Q8 for ; Wed, 3 Oct 2012 10:45:42 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 426C2101E8 for ; Wed, 3 Oct 2012 10:45:42 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q938jeHo009324 for ; Wed, 3 Oct 2012 10:45:41 +0200 Original-Received: by bkcjm1 with SMTP id jm1so6562321bkc.14 for ; Wed, 03 Oct 2012 01:45:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to:x-mailer; bh=6WLe9nUekGZuJVqIpmGMMzmFM+xPplbFID6405sE6Uw=; b=WMW2r/lK6SdOprL2qatbxWi7lOcKD2P1UUjvf7EOUZ7ZoDKh+sbEfyXbX4IkQbK3NB EhqG5rd2rQc/28H0i8NEWPy/2UaYD+ldtSgREQdiwLrJeXVqYSz9YhQVcXaxr/NbTjJ8 OXzMoo39IytR2ZtL3a9wgU2aZbX/7od92fIvpHAEjOyX6KcIYMlkqNeMKKBPcQ4Rm701 oOGpfSg2h3umdHbMPDxRLXgibWeQiwSRS1etLiBIfD3xh4Ju239g7JJB9BN3t9orcso0 kY+5mGmvDSVaP4ez778QXwC5EfhCDzgbgqObBqO/m+LJz1TqdfDqCPOxzgEpP4t/L0RP BQSQ== Original-Received: by 10.204.8.141 with SMTP id h13mr248805bkh.54.1349253940748; Wed, 03 Oct 2012 01:45:40 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbe6128.pool.mediaWays.net. [77.190.97.40]) by mx.google.com with ESMTPS id z22sm2739977bkw.2.2012.10.03.01.45.39 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 03 Oct 2012 01:45:40 -0700 (PDT) In-Reply-To: <20121002173838.30205e71@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: 08I6wJFbV - c4549d6b3bfa - 20121003 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:78549 Archived-At: --===============0875343782== Content-Type: multipart/alternative; boundary="Apple-Mail=_385AE65F-80CE-481C-81EC-A48F9D2B5037" --Apple-Mail=_385AE65F-80CE-481C-81EC-A48F9D2B5037 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 02.10.2012 um 23:38 schrieb john Culleton : > Trying to use an OTF font just for the title page. > Ran mkluatexfontdb > Used the name as defined in ../otfl-names.lua > Here is my actual code: > -------------------------- >=20 > \usemodule[simplefonts] > \definefont [titlefont][MyriadPro-Bold at 50bp] =20 > \startstandardmakeup > \titlefont=20 > \centerline{Scribus} > \centerline {for} > \centerline{Book Covers} > \centerline{Free Publishing Software Series} > \rm > \stopstandardmakeup > -------------------------- > And here are the pertinent error messages: > ------------------------------ > (title.tex > resolvers > modules > loaded: 'simplefonts' > = (/home/safe/context/tex/texmf-modules/tex/context/third/simplefonts/t-simp= lefonts.mkiv > loading > ConTeXt User Module / Simplefonts > <+ = /home/safe/context/tex/texmf-modules/tex/context/third/simplefonts/t-simpl= efonts.lua>) > fonts > defining > font with asked name 'MyriadPro-Bold' is = not found using lookup 'file' > fonts > defining > unknown font MyriadPro-Bold, loading = aborted > fonts > defining > unable to define MyriadPro-Bold as = [titlefont--0] > ) > = ----------------------------------------------------------------------- > Clearly I don't know what I am doing. Can someone help? The command =93 mkluatexfontdb=94 creates a font database for LaTeX (or = more concrete the luaotfload package) but context has always used it=92s own font = database. To update the font database for context you have to call =93mtxrun = --script fonts --reload=94 but the script searches for system fonts only on windows and mac = machines. When you=92re working on a linux system you have to set the =93OSFONTDIR=94 variable = first. Read also this: = http://wiki.contextgarden.net/Fonts_in_LuaTeX#Building_the_font_database Wolfgang --Apple-Mail=_385AE65F-80CE-481C-81EC-A48F9D2B5037 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 John@wexfordpress.com>:=
Trying = to use an OTF font just for the title page.
Ran = mkluatexfontdb
Used the name as defined in ../otfl-names.lua
Here = is my actual = code:
--------------------------

\usemodule[simplefonts]
\def= inefont [titlefont][MyriadPro-Bold at 50bp] =       
\startstandardmakeup
\titlefont=
\centerline{Scribus}
\centerline {for}
\centerline{Book = Covers}
\centerline{Free Publishing Software = Series}
\rm
\stopstandardmakeup
--------------------------
And= here are the pertinent error = messages:
------------------------------
(title.tex
resolvers =       > modules > loaded: = 'simplefonts'
(/home/safe/context/tex/texmf-modules/tex/context/third/s= implefonts/t-simplefonts.mkiv
loading =         > ConTeXt User Module = / Simplefonts
<+ = /home/safe/context/tex/texmf-modules/tex/context/third/simplefonts/t-simpl= efonts.lua>)
fonts =           > = defining > font with asked name 'MyriadPro-Bold' is not found using = lookup 'file'
fonts =           > = defining > unknown font MyriadPro-Bold, loading aborted
fonts =           > = defining > unable to define MyriadPro-Bold as = [titlefont--0]
)
---------------------------------------------------= --------------------
Clearly I don't know what I am doing. Can = someone help?

The command =93 mkluatexfontdb=94 creates a font = database for LaTeX (or more concrete
the luaotfload package) but context = has always used it=92s own font database.

To update the font database for = context you have to call =93mtxrun --script fonts = --reload=94
machines. When = you=92re
http://wiki.contextgarden.net/Fonts_in_LuaTeX#Building_the_font_da= tabase

Wolfgang

= --Apple-Mail=_385AE65F-80CE-481C-81EC-A48F9D2B5037-- --===============0875343782== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0875343782==--