ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: Sanjoy Mahajan <sanjoy@olin.edu>
Cc: "dev-context@ntg.nl Context" <dev-context@ntg.nl>,
	mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: palatino at 10.5pt bold not found when using project structure w/ MkIV
Date: Sat, 6 Jul 2013 08:11:52 +0200	[thread overview]
Message-ID: <3E3C010F-F61D-4098-9F74-F486822BAB60@gmail.com> (raw)
In-Reply-To: <8738rs8wi3.fsf@approx.mit.edu>


Am 06.07.2013 um 00:36 schrieb Sanjoy Mahajan <sanjoy@olin.edu>:

> From what I can tell, the bold font is not found if all of the following
> are true:
> 
> 1. using the Palatino typescript
> 2. setting the body font to 10.5pt (but 11pt or 12pt works fine)
> 3. using MkIV
> 4. using components (project structure)
> 
> Here's the minimal example (mytest.tex):
> 
> ============================================================
> \startmode[ascomponent]
>  \startcomponent mytest
> \stopmode
> 
> \usetypescript[palatino][ec]
> \setupbodyfont[palatino,10.5pt]
> 
> \startmode[standalone]
>  \starttext
> \stopmode
> 
> {\bold hello}
> 
> \startmode[standalone]
>  \stoptext
> \stopmode
> 
> \startmode[ascomponent]
>  \stopcomponent
> \stopmode
> ============================================================
> 
> Compile the two variants with:
> 
>  context --mode=ascomponent --result=mytest-ascomponent.pdf mytest.tex
>  context --mode=standalone --result=mytest-standalone.pdf mytest.tex
> 
> mytest-standalone.pdf is fine (the "hello" is in bold), but
> mytest-ascomponent.pdf has the "hello" in roman.
> 
> The particular roman font in mytest-ascomponent.pdf is also funny:
> 
>  $ pdffonts mytest-ascomponent.pdf
>  name                                 type              emb sub uni object ID
>  ------------------------------------ ----------------- --- --- --- ---------
>  TZNKGE+TeXGyrePagellaMath-Regular    CID Type 0C       yes yes yes     18  0
> 
> Why is it the math font?
> 
> (A slightly more complex example, using \project to include a project
> file, which includes an environment file that asks for palatino,
> produced the same problem.  But the version above needs just one file,
> mytest.tex, so for simplicity I am describing the problem using it.)
> 
> What I think is happening is that, when running as a component, the
> typescript loading happens too late (after the equivalent of
> "\starttext"), and not everything gets set up properly.  In support of
> that idea, if I shift the two environment lines ("\usetypescript ...")
> to just before the "{\bold hello}"---thus, after the "\starttext"---then
> the standalone version gets the same problem ("hello" in roman).
> 
> What puzzles me is that this problem shows up only with 10.5pt and using
> palatino.  If I just use 10.5pt (i.e. w/ modern), then there's no
> problem.  Or 11pt in Palatino is fine.  There's also no problem using MkII.
> 
> I tested with the context in vanilla TL2013 and in Norbert's latest
> Debian packages--the problem happens in both.

1. Use the normal and not the developer list for such a question.

2. You can omit the \usetypescript line.

3. Move the \setupbodyfont setting *before* \startcomponent.

4. Add \definebodyfontenvironment[10.5pt] to your document.

Wolfgang

       reply	other threads:[~2013-07-06  6:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8738rs8wi3.fsf@approx.mit.edu>
2013-07-06  6:11 ` Wolfgang Schuster [this message]
2013-07-06 10:33   ` [dev-context] " Sanjoy Mahajan
2013-07-07 20:38     ` Wolfgang Schuster
2013-07-08 20:29       ` Sanjoy Mahajan

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=3E3C010F-F61D-4098-9F74-F486822BAB60@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=dev-context@ntg.nl \
    --cc=ntg-context@ntg.nl \
    --cc=sanjoy@olin.edu \
    /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).