From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86605 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Problem using the new buildin simplefont \definefontfamily with OTF fonts Date: Sun, 9 Mar 2014 23:12:26 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: multipart/mixed; boundary="===============1355197308==" X-Trace: ger.gmane.org 1394403158 30176 80.91.229.3 (9 Mar 2014 22:12:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Mar 2014 22:12:38 +0000 (UTC) Cc: =?utf-8?B?572X5pmo5pif?= To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 09 23:12:48 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WMlxg-0005v4-86 for gctc-ntg-context-518@m.gmane.org; Sun, 09 Mar 2014 23:12:48 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3416E101EC; Sun, 9 Mar 2014 23:12:47 +0100 (CET) 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 Jeyl-HebjTPQ; Sun, 9 Mar 2014 23:12:45 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 5FC73101E3; Sun, 9 Mar 2014 23:12:45 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 44981101E3 for ; Sun, 9 Mar 2014 23:12:43 +0100 (CET) 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 vFg7TSlgXo76 for ; Sun, 9 Mar 2014 23:12:41 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id D4836101E1 for ; Sun, 9 Mar 2014 23:12:41 +0100 (CET) Original-Received: from mail-bk0-x233.google.com (mail-bk0-x233.google.com [IPv6:2a00:1450:4008:c01::233]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s29MCUu6025273 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 9 Mar 2014 23:12:41 +0100 Original-Received: by mail-bk0-f51.google.com with SMTP id 6so1109268bkj.38 for ; Sun, 09 Mar 2014 15:12:30 -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:cc :message-id:references:to; bh=6cCiGkM2jf1p+3eKGsehrOpEob2aga8uGmyIp9kLHcY=; b=KsVy9hiont56+WE61Mfvkn4dgz3aF2ZLUgu9UJ8RHaQM0AuKQgv/vNPprRQudCb9w7 WnD+n3EjsRiIUN6Dm1aDXr6KrCD2z4nXyu1DImDQ6Dq9uwi/ZTx8h47T5m7U7nY2QUJ3 DUOwkdiIeVvjQjzw8kKdJQCsZXagFxacELbpRlrj0OLdy0S320h7AxYe6OZoONIH+29D PVaTOOe09dcOwOiiabYR0GEp6+wM5m6CvhU+RqXY0KQBXoC9r8Ve9hcpO7QL9kNdBz8n cqYEmZYaLMttG0sx6QDf3W6Z652ysg8xtok0TbhoxK/gQ5JURPiP3zKlqlUxDqBAv5OF pWcQ== X-Received: by 10.205.12.7 with SMTP id pg7mr10552026bkb.4.1394403150325; Sun, 09 Mar 2014 15:12:30 -0700 (PDT) Original-Received: from keima.localdomain (x2f22bd6.dyn.telefonica.de. [2.242.43.214]) by mx.google.com with ESMTPSA id u14sm9578604bkg.9.2014.03.09.15.12.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 09 Mar 2014 15:12:28 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1874) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::233; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07Lzycu5i - d861d41413f5 - 20140309 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:86605 Archived-At: --===============1355197308== Content-Type: multipart/alternative; boundary="Apple-Mail=_B2E32D59-F228-4465-BAAE-0A7039950FCC" --Apple-Mail=_B2E32D59-F228-4465-BAAE-0A7039950FCC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Am 07.03.2014 um 14:35 schrieb =E7=BD=97=E6=99=A8=E6=98=9F = : > I am using Ubuntu 13.10 with ConTeXt daily build and LuaTeX daily = build. My ConTeXt version is 2014.02.14 17:07, LuaTeX version = beta-0.78.3 (TeX Live 2014/dev/Debian) (rev 4850) . >=20 > While there are some problems with using the newly added feature of = build-in support of simplefonts. >=20 > I was using something like=20 >=20 > \definefontfamily[mainface][serif][Kepler] > \setupbodyfont[mainface] > \starttext > Hello World! > \stoptext >=20 > It would end up with using Latin Modern font. >=20 > The log is like this: >=20 > system > 'cont-new.mkiv' loaded > (/usr/share/texmf/tex/context/base/cont-new.mkiv) > system > files > jobname '003', input './003', result '003' > fonts > latin modern fonts are not preloaded > languages > language 'en' is active > (/home/alan/tex/test/003.tex > fonts > preloading latin modern fonts (math) > = {/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/m= ap/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base= .map} > fonts > 'fallback modern mm 12pt' is loaded > fonts > preloading latin modern fonts (mono) > fonts > 'fallback modern tt 12pt' is loaded > fonts > defining > font with asked name 'unknown' is not found using = lookup 'file' > fonts > defining > unknown font 'unknown', loading aborted > fonts > defining > unable to define 'unknown' as = 'mainface-12pt-rm-tf-0--0' > backend > xmp > using file = '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' >=20 > However, when I use something like Times New Roman (TTF), Utopia = (TTF), Georgia(TTF), FZShuSong-Z01 (TTF Chinese font) it would be = working all right, fonts applied, no error reported. >=20 > But like in the example, Kepler (OTF), Minion Pro (OTF), Utopia Std = (OTF) would failed to be applied. It is as if it would fail every OTF = font. >=20 > When I am using some font in the legacy simplefonts module mode, = something like: >=20 > \usemodule[simplefonts] > \setmainfont[Kepler] > \starttext > Hello World! > \stoptext >=20 > Would be working alright. Logged as below: >=20 > fonts > latin modern fonts are not preloaded > languages > language 'en' is active > (/home/alan/tex/test/003.tex > resolvers > modules > 'simplefonts' is loaded > (/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.mkiv > loading > ConTeXt User Module / Simplefonts > <+ = /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua>){/usr/sh= are/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips= /lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} > backend > xmp > using file = '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' > pages > flushing realpage 1, userpage 1 > ) ) >=20 > So what's the problem? Is there anything I should look into? >=20 > If it is a problem with TeXLive how can I use the ConTeXt Standalone = without conflict with the previous installed TeXLive (Since I am also = using LaTeX) ? 1. Make sure context has added the fonts to its database, you can check = this for the minion pro fonts with the following command: mtxrun --script fonts --list --all minionpro* When you don=E2=80=99t see a list with the file for the minion pro font = you can try to update the database with mtxrun --script fonts --refresh 2. Use the correct name in the third argument of \definefontfamily, e.g. = =E2=80=9CKepler=E2=80=9D has to be replaced with =E2=80=9CKepler Std=E2=80= =9D. Wolfgang --Apple-Mail=_B2E32D59-F228-4465-BAAE-0A7039950FCC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Am 07.03.2014 um 14:35 schrieb = =E7=BD=97=E6=99=A8=E6=98=9F <chenxing.luo@gmail.com>:
I am using Ubuntu 13.10 = with ConTeXt daily build and LuaTeX daily build. My ConTeXt version = is 2014.02.14 17:07, LuaTeX version beta-0.78.3 (TeX Live = 2014/dev/Debian) (rev 4850) .

While there are some problems with = using the newly added feature of build-in support of = simplefonts.

I was using something like 

\definefontfamily[mainface][serif][Kepler]
\setupbodyfont[mainface]
\starttext
Hello World!

\stoptext

It would end up with using = Latin Modern font.

The log is like this:

system > 'cont-new.mkiv' = loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv)
system > files > jobname '003', input = './003', result '003'
fonts > latin = modern fonts are not preloaded
languages > language 'en' is active
(/home/alan/tex/test/003.tex
fonts > preloading latin modern fonts (math)
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/f= onts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mki= v-base.map}
fonts > 'fallback modern = mm 12pt' is loaded
fonts > = preloading latin modern fonts (mono)
fonts > 'fallback modern tt 12pt' is loaded
fonts > defining > font with asked name = 'unknown' is not found using lookup 'file'
fonts > defining > unknown font 'unknown', loading = aborted
fonts > defining > unable = to define 'unknown' as 'mainface-12pt-rm-tf-0--0'
backend > xmp > using file = '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'

However, when I use something like Times New = Roman (TTF), Utopia (TTF), Georgia(TTF), FZShuSong-Z01 (TTF Chinese = font) it would be working all right, fonts applied, no error = reported.

But like in the example, Kepler (OTF), Minion Pro (OTF), = Utopia Std (OTF) would failed to be applied. It is as if it would fail = every OTF font.

When I = am using some font in the legacy simplefonts module mode, something = like:

\usemodule[simplefonts]
\setmainfont[Kepler]
\starttext
Hello World!

\stoptext

Would be working alright. = Logged as below:

fonts > latin = modern fonts are not preloaded
languages > language 'en' is = active
(/home/alan/tex/test/003.tex
resolvers > modules > 'simplefonts' is = loaded
(/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.mkiv
loading > = ConTeXt User Module / Simplefonts
<+ = /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua>){/usr= /share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dv= ips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}=
backend > = xmp > using file = '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
pages > flushing = realpage 1, userpage 1

 ) = )</home/alan/.fonts/KeplerStd-Subh.otf>

So what's the problem? Is = there anything I should look into?

If it is a problem with TeXLive = how can I use the ConTeXt Standalone without conflict with the previous = installed TeXLive (Since I am also using LaTeX) = ?

1. Make sure context has = added the fonts to its database, you can check this for the minion pro = fonts with the following command:

    = mtxrun --script fonts --list --all = minionpro*

When you don=E2=80=99t see a list = with the file for the minion pro font you can try to update the database = with

    mtxrun --script fonts = --refresh

2. Use the correct name in the third = argument of \definefontfamily, e.g. =E2=80=9CKepler=E2=80=9D has to be = replaced with =E2=80=9CKepler = Std=E2=80=9D.

Wolfgang



= --Apple-Mail=_B2E32D59-F228-4465-BAAE-0A7039950FCC-- --===============1355197308== 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 ___________________________________________________________________________________ --===============1355197308==--