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>
Cc: 罗晨星 <chenxing.luo@gmail.com>
Subject: Re: Problem using the new buildin simplefont \definefontfamily with OTF fonts
Date: Sun, 9 Mar 2014 23:12:26 +0100	[thread overview]
Message-ID: <BC915027-A934-471A-87E4-28D8DA07C51A@gmail.com> (raw)
In-Reply-To: <CALFqtq_t+SFahJ=Ud54C0w7EZpDKvvmnT9crrWTdVQNY_N2W7A@mail.gmail.com>


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


Am 07.03.2014 um 14:35 schrieb 罗晨星 <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/fonts/map/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'
> 
> 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/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
>  ) )</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’t 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. “Kepler” has to be replaced with “Kepler Std”.

Wolfgang




[-- Attachment #1.2: Type: text/html, Size: 6429 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
___________________________________________________________________________________

  reply	other threads:[~2014-03-09 22:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-07 13:35 罗晨星
2014-03-09 22:12 ` Wolfgang Schuster [this message]
2014-03-10  0:37   ` 罗晨星
     [not found]     ` <7B38362A-A4D8-4C06-A944-526A0FC3814C@gmail.com>
     [not found]       ` <42260D8D-8952-4352-B555-408E7E2DA841@gmail.com>
2014-03-10  5:02         ` 罗晨星
2014-03-10  5:03           ` 罗晨星

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=BC915027-A934-471A-87E4-28D8DA07C51A@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=chenxing.luo@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).