ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Stefan Wachter <stefan.wachter@gmx.de>
Subject: Is there a bug in switching body fonts?
Date: Thu, 17 Mar 2005 20:57:22 +0100	[thread overview]
Message-ID: <4239E122.8060603@gmx.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 2328 bytes --]

Hi all,

I try to use two different postscript font families. The first family 
uses the  Acrobat fonts without embedding and without reencoding whereas 
the second family uses the Acrobat fonts without embedding but with 
reencoding.

For that means I wrote the typescript file below.

When I use the first family only everything works fine. Similarly, if I 
use the second family only everything also works fine. Yet, if I try to 
switch the body font in a document I get the following error message:

! Font \nullfont has only 7 fontdimen parameters.
<to be read again>
                    \advance
\dohighlow ...#2\textfont 2\else #3ex\fi \advance
                                                   \scratchdimen #4ex 
\kern ....

\dogotofixed ...c!color {#1\presetgoto }}}\else #1
                                                   \fi }
\doifreferencefoundelse ...ce \ifreferencefound #2
                                                   \else #3\fi \egroup 
\dores...

\gotobox ...2]} {\hbox {\unknownreference {#2}#1}}
                                                   \referentieinfo 
{<}{#2}\eg...
<argument> ...}[\s!fnt :t:\internalfootreference ]
                                                   \rawreference \s!fnt 
{\s!f...
...
l.27 {\ss Helvetica\par\ShowVariants
                                     }

Can anyone help me with this problem?

Best regards,
--Stefan

The test document
=================

\enableregime[il1]
\setupencoding[default=texnansi]
\setupoutput[pdftex]
\pdfoptionpdfminorversion 4

\usetypescriptfile[smallpdf.tex]
\usetypescript[reencode][texnansi][texnansi]
\usetypescript[postscript][texnansi]
\usetypescript[builtInPostscript][texnansi]

\setupbodyfont[postscript,sans,30pt]

\mainlanguage[de]
\setupheadertexts[]

\def\Show{This is a test.\footnote{Fußnote.} 45\char176 \quotedblbase 
äöüßÄÖÜ\quotedblleft}
\def\ShowVariants{\Show\par{\bf\Show}\par{\it\Show}\par{\bi\Show}\par}

\starttext\pdfmapfile{+smallpdf.map}

{\ss Helvetica\par\ShowVariants}
{\rm Times-Roman\par\ShowVariants}
{\tt Courier\par\ShowVariants}

\switchtobodyfont[builtInPostscript] % causes error an error

{\ss Helvetica\par\ShowVariants} % line 27
{\rm Times-Roman\par\ShowVariants}
{\tt Courier\par\ShowVariants}

\stoptext



[-- Attachment #2: smallpdf.tex --]
[-- Type: application/x-tex, Size: 6810 bytes --]

[-- Attachment #3: smallpdf.map --]
[-- Type: text/plain, Size: 1349 bytes --]

raw-phvr8a Helvetica
raw-phvb8a Helvetica-Bold
raw-phvbo8a Helvetica-BoldOblique
raw-phvro8a Helvetica-Oblique
raw-ptmr8a Times-Roman
raw-ptmb8a Times-Bold
raw-ptmbi8a Times-BoldItalic
raw-ptmri8a Times-Italic
raw-pcrr8a Courier
raw-pcrb8a Courier-Bold
raw-pcrbo8a Courier-BoldOblique
raw-pcrro8a Courier-Oblique
raw-psyr Symbol
raw-pzdr ZapfDingbats

texnansi-raw-phvb8a Helvetica-Bold " TeXnANSIEncoding ReEncodeFont " <texnansi.enc
texnansi-raw-phvro8a Helvetica-Oblique " TeXnANSIEncoding ReEncodeFont " <texnansi.enc
texnansi-raw-phvr8a Helvetica " TeXnANSIEncoding ReEncodeFont " <texnansi.enc
texnansi-raw-phvbo8a Helvetica-BoldOblique " TeXnANSIEncoding ReEncodeFont " <texnansi.enc
texnansi-raw-pcrb8a Courier-Bold " TeXnANSIEncoding ReEncodeFont " <texnansi.enc
texnansi-raw-pcrbo8a Courier-BoldOblique " TeXnANSIEncoding ReEncodeFont " <texnansi.enc
texnansi-raw-pcrr8a Courier " TeXnANSIEncoding ReEncodeFont " <texnansi.enc
texnansi-raw-pcrro8a Courier-Oblique " TeXnANSIEncoding ReEncodeFont " <texnansi.enc
texnansi-raw-ptmr8a Times-Roman " TeXnANSIEncoding ReEncodeFont " <texnansi.enc
texnansi-raw-ptmri8a Times-Italic " TeXnANSIEncoding ReEncodeFont " <texnansi.enc
texnansi-raw-ptmbi8a Times-BoldItalic " TeXnANSIEncoding ReEncodeFont " <texnansi.enc
texnansi-raw-ptmb8a Times-Bold " TeXnANSIEncoding ReEncodeFont " <texnansi.enc

[-- Attachment #4: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

                 reply	other threads:[~2005-03-17 19:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4239E122.8060603@gmx.de \
    --to=stefan.wachter@gmx.de \
    --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).