From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84893 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: How to use system fonts Date: Fri, 18 Oct 2013 18:03:25 +0200 Message-ID: <0F4EA9C9-B233-4CA1-A7D4-D0D1DF60A087@gmail.com> References: <526159D5.2010001@huynink.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: multipart/mixed; boundary="===============0710159642==" X-Trace: ger.gmane.org 1382112220 8928 80.91.229.3 (18 Oct 2013 16:03:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Oct 2013 16:03:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 18 18:03:45 2013 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 1VXCWb-0004s6-Q1 for gctc-ntg-context-518@m.gmane.org; Fri, 18 Oct 2013 18:03:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 79519101DE; Fri, 18 Oct 2013 18:00:53 +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 i3Zkms7jGFfb; Fri, 18 Oct 2013 18:00:50 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 24F58101E3; Fri, 18 Oct 2013 18:00:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9D7D2101E3 for ; Fri, 18 Oct 2013 18:00:48 +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 V6cNZxiEdPHn for ; Fri, 18 Oct 2013 18:00:47 +0200 (CEST) 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 2899F101DE for ; Fri, 18 Oct 2013 18:00:47 +0200 (CEST) Original-Received: from mail-ee0-x22e.google.com (mail-ee0-x22e.google.com [IPv6:2a00:1450:4013:c00::22e]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r9IG3Xwe020644 for ; Fri, 18 Oct 2013 18:03:33 +0200 Original-Received: by mail-ee0-f46.google.com with SMTP id c13so2124647eek.19 for ; Fri, 18 Oct 2013 09:03:33 -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; bh=9LNu2IHbUictHEqsnCSx1rs1kox80AbTL0i0y4NdeQc=; b=Kwoo737tQWHV5gJ9jOXGh2Bgfo+pIAVB2RVaGkjyqq+mfIdYwe8fwtOn07lde9ntJw Ao0b6C1zX5P+pHdXhTr/vkveimRGJfOxQZKosqS72M4q4K9Wt+J1N/AkPROoHICpTjsW 3LVeSqSQs45UrPKeyIM9TANHggTPA9xtTC0ctUqorBThKhvs4ESr3i+4Fd2+dZUEVjJU MUB8TPTGeaLQa+DxMs+qat9CENrenrRW/E+/IugUZ+x8BvJozoLdlmaNm7gUe1qSKAbd ymbntg1C+GvgAfyG7+voUYjsOSWgt2pPn7xXEdszHvOXtt2Xp6zQvETQ+afVI3DfFxul ZsqQ== X-Received: by 10.14.115.133 with SMTP id e5mr5554213eeh.27.1382112213308; Fri, 18 Oct 2013 09:03:33 -0700 (PDT) Original-Received: from keima.localdomain (x2f24685.dyn.telefonica.de. [2.242.70.133]) by mx.google.com with ESMTPSA id e13sm6211069eeu.4.2013.10.18.09.03.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Oct 2013 09:03:32 -0700 (PDT) In-Reply-To: <526159D5.2010001@huynink.nl> X-Mailer: Apple Mail (2.1510) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c00::22e; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07KCE3xcf - 3b9f5036fabd - 20131018 (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:84893 Archived-At: --===============0710159642== Content-Type: multipart/alternative; boundary="Apple-Mail=_D2EC1F0C-27B1-4B8C-9702-D85115B9B344" --Apple-Mail=_D2EC1F0C-27B1-4B8C-9702-D85115B9B344 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 18.10.2013 um 17:55 schrieb Sven Huynink : > I seem no to be able to use system fonts, not with /simplefonts = neither with typescripts. When I define=20 >=20 > \starttypescript [serif] [arnoproregular] > \definefontsynonym [Serif] [name:arnoproregular] > \definefontsynonym [SerifItalic] [name:arnoproitalic] > \definefontsynonym [SerifBoldItalic] [name:arnoproitaliccaption] > \definefontsynonym [SerifCaps] [name:arnoproregular] > \stoptypescript >=20 > (or any other system font in my Windows font directory e:/windows/ = fonts as defined in osfontdir), I get =20 You have to define also a typeface to use the typescript, e.g. \starttypescript [serif] [arnoproregular] =85 \stoptypescript \definetypeface [myfont] [rm] [serif] [arnoproregular] [default] \setupbodyfont[myfont] \starttext \input knuth \stoptext > fonts > typescripts > unknown library 'loc' > = {E:/texprogs/texlive/2013/texmf-dist/fonts/map/dvips/lm/lm-math.map}{E:/te= xprogs/texlive/2013/texmf-dist/fonts/map/dvips/lm/lm-rm.map}{E:/texprogs/t= exlive/2013/texmf-dist/fonts/map/pdftex/context/mkiv-base.map} > fonts > 'fallback modern rm 11pt' is loaded >=20 > First, I don't understand "unknown library 'loc' " > I haven't defined = that. Or does it mean 'local'? When I do the same with, say, garamond, I = also get the line "unknown library 'garamond' " > why does it think = garamond is in a library?=20 > When I do=20 >=20 > mtxrun --script fonts --list --info --pattern=3Darnoproregular* >=20 > mtxfonts gives me all kinds of information, so the font *is* known to = ConTeXt. Or is that a rash conclusion? =20 Which information do you get? > Second, there is not even a mention of the typescript or the font in = the log. Why is that? Is it purely a syntax error in my setup as copied = above? >=20 > Thirdly - of course - my question is: how can I make ConTeXt use my = system fonts? =20 On Windows and Mac you can use system fonts out of the box, you have to = write only a typescript or use simplefonts. > I use TexLive (most recent version), Texworks and Windows 7. Before I = had a standalone ConTeXt set-up, which gave the same problems. Can you try the following example with the current beta from the ConTeXt = Suite. \definefontfamily [mainface] [rm] [Arno Pro] \setupbodyfont[mainface] \starttext \input knuth \stoptext Wolfgang= --Apple-Mail=_D2EC1F0C-27B1-4B8C-9702-D85115B9B344 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 sven@huynink.nl>:
=20 =20
I seem no to be able to use system fonts, not with /simplefonts neither with typescripts. When I define

\starttypescript [serif] [arnoproregular]
\definefontsynonym [Serif] [name:arnoproregular]

=

\definefontsynonym [SerifItalic] [name:arnoproitalic]

=

\definefontsynonym [SerifBoldItalic] = [name:arnoproitaliccaption]

=

\definefontsynonym [SerifCaps] [name:arnoproregular]
\stoptypescript

(or any other system font in my Windows font directory e:/windows/ fonts as defined in osfontdir), I get       =  

You have to define = also a typeface to use the typescript, = e.g.

\starttypescript [serif] = [arnoproregular]
  = =85
\stoptypescript

\definetypeface = [myfont] [rm] [serif] [arnoproregular] = [default]

\setupbodyfont[myfont]

\starttext
\input = knuth
\stoptext

fonts   &nbs= p;       > typescripts > unknown = library 'loc'
= {E:/texprogs/texlive/2013/texmf-dist/fonts/map/dvips/lm/lm-math.map}{E:/te= xprogs/texlive/2013/texmf-dist/fonts/map/dvips/lm/lm-rm.map}{E:/texprogs/t= exlive/2013/texmf-dist/fonts/map/pdftex/context/mkiv-base.map}
fonts           = > 'fallback modern rm 11pt' is loaded

First, I don't understand "unknown library 'loc' " > I haven't defined that. Or does it mean 'local'? When I do the same with, say, garamond, I also get the line "unknown library 'garamond' " > why does it think garamond is in a library?
When I do

mtxrun --script fonts --list --info --pattern=3Darnoproregular*

mtxfonts gives me all kinds of information, so the font *is* known to ConTeXt. Or is that a rash conclusion?      =  

Which information do = you get?

Second,= there is not even a mention of the typescript or the font in the log. Why is that? Is it purely a syntax error in my setup as copied above?

Thirdly - of course - my question is: how can  I  make = ConTeXt use my system fonts?      =  

On Windows and Mac = you can use system fonts out of the box, you have to write only a = typescript or use simplefonts.

I use TexLive (most = recent version), Texworks and Windows 7. Before I had a standalone ConTeXt set-up, which gave the same problems.

Can you try = the following example with the current beta from the ConTeXt = Suite.

\definefontfamily [mainface] [rm] [Arno = Pro]

\setupbodyfont[mainface]

\starttext
\input = knuth
\stoptext

Wolfgang
= --Apple-Mail=_D2EC1F0C-27B1-4B8C-9702-D85115B9B344-- --===============0710159642== 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 ___________________________________________________________________________________ --===============0710159642==--