From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77630 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Font recognition with command "context", but not with command "texexec" Date: Sun, 29 Jul 2012 09:34:24 +0200 Message-ID: <898BA0E1-27D9-4180-8436-556C2D2C3126@gmail.com> References: <50143956.7040208@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1485\)) Content-Type: multipart/mixed; boundary="===============1722432056==" X-Trace: dough.gmane.org 1343547275 2383 80.91.229.3 (29 Jul 2012 07:34:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Jul 2012 07:34:35 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 29 09:34:35 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 1SvO1L-0004mn-5a for gctc-ntg-context-518@m.gmane.org; Sun, 29 Jul 2012 09:34:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B5704101EA; Sun, 29 Jul 2012 09:34:33 +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 lyVR5bfDuBk4; Sun, 29 Jul 2012 09:34:31 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 54D3D101E0; Sun, 29 Jul 2012 09:34:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6C972101E0 for ; Sun, 29 Jul 2012 09:34:29 +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 pPY7xMq5j07R for ; Sun, 29 Jul 2012 09:34:28 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id F1A35101DD for ; Sun, 29 Jul 2012 09:34:27 +0200 (CEST) Original-Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q6T7Ycci021310 for ; Sun, 29 Jul 2012 09:34:38 +0200 Original-Received: by wgbdq12 with SMTP id dq12so2717427wgb.2 for ; Sun, 29 Jul 2012 00:34:26 -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=c8Yy83sMoHBwk8L5LGuRZUlp5y8ED4CyUeq8wlRSKSM=; b=1Ax6rJCBDtmUqSvXi1hLJqIcs5BzHhRliN7nhgNUNsmqRUIunifKnzfekuQnZ382l2 bYoGhHNW/SyS9pcdnspZZR4U9JzgIReLdLyoBoYq3fmcmnGJe0OpFLFInVAaMI2fvtmI 0DPA2L3Ar9/cC5uMPVUZ5vWjZhdQC1MG8qXpNNruE2gXqTjIsWtSv/mBFCl7BYV7l1xM WNHcHsa727oArKUxvlsjPfgusaZNduQ56dQog+79028q9Hv6vaIVpczZWtxzS8Hfjtrt GnIQZLI72w1a7i/MMa2IAp3UusjT9la0LmjRxhdirwK6nIBww6UzGfcaDs02B2NosKao Bwfw== Original-Received: by 10.180.78.135 with SMTP id b7mr17849720wix.11.1343547266827; Sun, 29 Jul 2012 00:34:26 -0700 (PDT) Original-Received: from [192.168.2.36] (p57AFA926.dip.t-dialin.net. [87.175.169.38]) by mx.google.com with ESMTPS id eu4sm8844325wib.2.2012.07.29.00.34.25 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 29 Jul 2012 00:34:26 -0700 (PDT) In-Reply-To: <50143956.7040208@gmail.com> X-Mailer: Apple Mail (2.1485) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.45; 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: 01HE7yCcU - cc27fa2c4dfe - 20120729 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:77630 Archived-At: --===============1722432056== Content-Type: multipart/alternative; boundary="Apple-Mail=_91F6D7C2-087D-43A1-9C04-55F76127626A" --Apple-Mail=_91F6D7C2-087D-43A1-9C04-55F76127626A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Am 28.07.2012 um 21:11 schrieb Martin Rimmler = : > Hi, >=20 > this might be a very simple problem, but I tried to figure it out for = some time now without success. Reading manuals, searching with Google, = etc. did not help. So if it actually is very simple, I herewith = apologize. I really tried to solve it without the mailing list. >=20 > Here is the Problem: > The command "texexec" ignores the bodyfont setup. When I process the = following code >=20 > \setupbodyfont[gentium] >=20 > \starttext > This little text is enough to demonstrate the problem. > \stoptext >=20 > with the command "texexec filename", the default font is used. Only = when i use the command "context filename.tex", context uses the font = gentium.=20 > The gentium font is a truetype font and stored on my system under = /usr/share/fonts. > I use Linux Mint Debian Edition 201204. My .bashrc file contains the = following line: >=20 > export = OSFONTDIR=3D"/usr/local/share/fonts;$HOME/.fonts;/usr/share/fonts" >=20 > I use the standalone version of context with pdftex. The command = \contextversion returns "2012.07.27 16:41", i.e. the time I last updated = it. >=20 > Using the mkiv switch did not help. >=20 > texexec mkiv filename >=20 >=20 > Any comments are welcome. For MkII you have to load the typescript file and the typescript = yourself while for MkIV these two steps are done together with the = \setupbodyfont command when the name for the typeface, typescript and = file is the same (e.g. gentium and type-gentium). \usetypescriptfile[type-gentium] \usetypescript[gentium][texnansi] \setupbodyfont[gentium] \starttext This little text is enough to demonstrate the problem. \stoptext Wolfgang --Apple-Mail=_91F6D7C2-087D-43A1-9C04-55F76127626A Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=iso-8859-1
Am 28.07.2012 um 21:11 schrieb Martin Rimmler <martin.rimmler@googlemail.com>:

Hi,

this might be a very simple problem, but I tried to figure it out for some time now without success. Reading manuals, searching with Google, etc. did not help. So if it actually is very simple, I herewith apologize. I really tried to solve it without the mailing list.

Here is the Problem:
The command "texexec" ignores the bodyfont setup. When I process the following code

    \setupbodyfont[gentium]

    \starttext
    This little text is enough to demonstrate the problem.
    \stoptext

with the command "texexec filename", the default font is used. Only when i use the command "context filename.tex", context uses the font gentium.
The gentium font is a truetype font and stored on my system under /usr/share/fonts.
I use Linux Mint Debian Edition 201204. My .bashrc file contains the following line:

    export OSFONTDIR="/usr/local/share/fonts;$HOME/.fonts;/usr/share/fonts"

I use the standalone version of context with pdftex. The command \contextversion returns "2012.07.27 16:41", i.e. the time I last updated it.

Using the mkiv switch did not help.

    texexec mkiv filename


Any comments are welcome.

For MkII you have to load the typescript file and the typescript yourself while for MkIV these two steps are done together with the \setupbodyfont command when the name for the typeface, typescript and file is the same (e.g. gentium and type-gentium).

\usetypescriptfile[type-gentium]
\usetypescript[gentium][texnansi]
\setupbodyfont[gentium]

\starttext
This little text is enough to demonstrate the problem.
\stoptext

Wolfgang

--Apple-Mail=_91F6D7C2-087D-43A1-9C04-55F76127626A-- --===============1722432056== 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 ___________________________________________________________________________________ --===============1722432056==--