From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84916 Path: news.gmane.org!not-for-mail From: Sven Huynink Newsgroups: gmane.comp.tex.context Subject: Re: How to use system fonts Date: Sun, 20 Oct 2013 23:27:18 +0200 Message-ID: <52644AB6.1050506@huynink.nl> References: <526159D5.2010001@huynink.nl> <0F4EA9C9-B233-4CA1-A7D4-D0D1DF60A087@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1580452978==" X-Trace: ger.gmane.org 1382304445 8010 80.91.229.3 (20 Oct 2013 21:27:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2013 21:27:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 20 23:27:30 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 1VY0X1-0000qO-U2 for gctc-ntg-context-518@m.gmane.org; Sun, 20 Oct 2013 23:27:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 97B59101EA; Sun, 20 Oct 2013 23:24:35 +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 NnWffjwL-B9v; Sun, 20 Oct 2013 23:24:32 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 05ED1101EE; Sun, 20 Oct 2013 23:24:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C1A8E101EE for ; Sun, 20 Oct 2013 23:24: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 Fz9g-IS1XgZM for ; Sun, 20 Oct 2013 23:24:28 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 27909101EA for ; Sun, 20 Oct 2013 23:24:28 +0200 (CEST) Original-Received: from smtp-vbr2.xs4all.nl (smtp-vbr2.xs4all.nl [194.109.24.22]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r9KLRIrc004543 for ; Sun, 20 Oct 2013 23:27:18 +0200 Original-Received: from [127.0.0.1] (a80-101-228-75.adsl.xs4all.nl [80.101.228.75]) (authenticated bits=0) by smtp-vbr2.xs4all.nl (8.13.8/8.13.8) with ESMTP id r9KLRH9Z054201 for ; Sun, 20 Oct 2013 23:27:18 +0200 (CEST) (envelope-from sven@huynink.nl) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 In-Reply-To: <0F4EA9C9-B233-4CA1-A7D4-D0D1DF60A087@gmail.com> X-Antivirus: avast! (VPS 131019-1, 19-10-2013), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: by XS4ALL Virus Scanner X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=194.109.24.22; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VKDxriC8 - 00fa15e26714 - 20131020 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:84916 Archived-At: --===============1580452978== Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
Thanks for your answer. The problem was all mine - that is, it disappeared with a fresh install of my rather clogged Windows. Now everything works fine!


Wolfgang Schuster schreef op 18-10-2013 18:03:

Am 18.10.2013 um 17:55 schrieb Sven Huynink <sven@huynink.nl>:

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]
  …
\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:/texprogs/texlive/2013/texmf-dist/fonts/map/dvips/lm/lm-rm.map}{E:/texprogs/texlive/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=arnoproregular*

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


___________________________________________________________________________________
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
___________________________________________________________________________________




Dit e-mailbericht bevat geen virussen en malware omdat avast! Antivirus actief is.


--===============1580452978== 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 ___________________________________________________________________________________ --===============1580452978==--