ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How to use system fonts
Date: Fri, 18 Oct 2013 18:03:25 +0200	[thread overview]
Message-ID: <0F4EA9C9-B233-4CA1-A7D4-D0D1DF60A087@gmail.com> (raw)
In-Reply-To: <526159D5.2010001@huynink.nl>


[-- Attachment #1.1: Type: text/plain, Size: 2394 bytes --]


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

[-- Attachment #1.2: Type: text/html, Size: 4983 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

  parent reply	other threads:[~2013-10-18 16:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-18 15:55 Sven Huynink
2013-10-18 15:59 ` Sven Huynink
2013-10-18 16:03 ` Wolfgang Schuster [this message]
2013-10-20 21:27   ` Sven Huynink

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0F4EA9C9-B233-4CA1-A7D4-D0D1DF60A087@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).