From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86598 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?572X5pmo5pif?= Newsgroups: gmane.comp.tex.context Subject: Problem using the new buildin simplefont \definefontfamily with OTF fonts Date: Fri, 7 Mar 2014 21:35:10 +0800 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1934073500==" X-Trace: ger.gmane.org 1394199337 1946 80.91.229.3 (7 Mar 2014 13:35:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2014 13:35:37 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 07 14:35:45 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 1WLuwC-0005MC-IL for gctc-ntg-context-518@m.gmane.org; Fri, 07 Mar 2014 14:35:44 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BD489101F5; Fri, 7 Mar 2014 14:35: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 cph0mRzXrhYj; Fri, 7 Mar 2014 14:35:41 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6B1EF101E6; Fri, 7 Mar 2014 14:35:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C4A81101E6 for ; Fri, 7 Mar 2014 14:35:39 +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 5IwPJjM+fih4 for ; Fri, 7 Mar 2014 14:35:38 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id AB534101E1 for ; Fri, 7 Mar 2014 14:35:33 +0100 (CET) Original-Received: from mail-pa0-x22e.google.com (mail-pa0-x22e.google.com [IPv6:2607:f8b0:400e:c03::22e]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s27DZUFj008424 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 7 Mar 2014 14:35:32 +0100 Original-Received: by mail-pa0-f46.google.com with SMTP id kp14so4130775pab.5 for ; Fri, 07 Mar 2014 05:35:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=v2eD08w88kjHorj8igPJqdFMYUMNWomicVO6BC0WNs0=; b=DuJ4VqCu8fFY1JViwKwEwemK/yoXU/A75tDWO1H1vbwI8wLSvOtqZ7zRqsQ/E7aalU W4ZvfF14SdzZjLDZVUE/4pKRmiiCEzZfU5Z4rhYjfT0lnd4fkYXM2FcKUhPh3P3cewOV JH/Qmhgfvdo2Hqxct8YJRGgvUgBnn01I958EQ5JTfBAH3BBxIt+CDzwAJn5ogY2sdclB IASgBW2ttwvO+f8ZIN39Q+7mBtu1OuvI74RY5xSznpfNPiPVHU8PKN8po/KlhB28tIP9 jF3bjijA4NlD+nNEEW3SDqu3gdDI8JKeOysqjQ9TIx5kPxycL7mlHpbB0e/dwadZgimb 5wIQ== X-Received: by 10.67.14.69 with SMTP id fe5mr22200052pad.120.1394199330192; Fri, 07 Mar 2014 05:35:30 -0800 (PST) Original-Received: by 10.68.123.166 with HTTP; Fri, 7 Mar 2014 05:35:10 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:400e:c03::22e; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03LyBzwMX - 9df8dae7a2db - 20140307 (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:86598 Archived-At: --===============1934073500== Content-Type: multipart/alternative; boundary=047d7b15fc77d2808f04f40453c0 --047d7b15fc77d2808f04f40453c0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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/fonts/ma= p/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.m= ap} 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/sha= re/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/l= m/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 ) ) 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) ? Regards. =E5=8D=97=E4=BA=AC=E5=A4=A7=E5=AD=A6 =E7=8E=B0=E4=BB=A3=E5=B7=A5=E7=A8=8B= =E4=B8=8E=E5=BA=94=E7=94=A8=E7=A7=91=E5=AD=A6=E5=AD=A6=E9=99=A2 2013=E7=BA= =A7 =E7=BD=97=E6=99=A8=E6=98=9F Luo Chenxing =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94 chenxing.luo@gmail.com --047d7b15fc77d2808f04f40453c0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I am using Ubuntu 13.10 with ConTeXt daily build an= d LuaTeX daily build. My ConTeXt version is=C2=A02014.02.14 17:07, LuaTeX v= ersion=C2=A0beta-0.78.3 (TeX Live 2014/dev/Debian) (rev 4850) .


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


I was using something like=C2=A0<= /p>


\definefontfamily[mainface]= [serif][Kepler]

\setupbodyfont[m= ainface]

\starttext

Hello World!

\stoptext


It would end up with using Latin Modern font.


The log is like this:


system > 'cont-new.mkiv' lo= aded

(/usr/share/texmf/tex/context/base/cont-new= .mkiv)

system > files > jobname '003&#= 39;, input './003', result '003'

fonts > latin modern fonts are not preloaded

=

languages > language 'en' is active

<= p style=3D"margin:0px">(/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/ma= p/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.m= ap}

fonts > 'fallback modern mm 12pt' is loa= ded

fonts > preloading latin modern fonts (mo= no)

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 abor= ted

fonts > defining > unable to define 'unkn= own' as 'mainface-12pt-rm-tf-0--0'

b= ackend > xmp > using file '/usr/share/texmf/tex/context/base/lpdf= -pdx.xml'


However, when I use something like Times New Roma= n (TTF), Utopia (TTF), Georgia(TTF), FZShuSong-Z01 (TTF Chinese font) it wo= uld 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 f= ont.

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


\us= emodule[simplefonts]

\setmainfon= t[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/te= x/test/003.tex

resolvers &= gt; 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/ma= p/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.m= ap}

backend > xmp > using= file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'

pages > flushing realpage 1, u= serpage 1

=C2=A0) )</home/alan/.fonts/KeplerStd-Subh.o= tf>


So what&#= 39;s the problem? Is there anything I should look into?


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


Regards.


=E5=8D=97=E4= =BA=AC=E5=A4=A7=E5=AD=A6 =E7=8E=B0=E4=BB=A3=E5=B7=A5=E7=A8=8B=E4=B8=8E=E5= =BA=94=E7=94=A8=E7=A7=91=E5=AD=A6=E5=AD=A6=E9=99=A2 2013=E7=BA=A7
=E7= =BD=97=E6=99=A8=E6=98=9F
Luo Chenxing
=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94
chenxing.luo@gmail.com
--047d7b15fc77d2808f04f40453c0-- --===============1934073500== 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 ___________________________________________________________________________________ --===============1934073500==--