ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Is there a bug in switching body fonts?
@ 2005-03-17 19:57 Stefan Wachter
  0 siblings, 0 replies; only message in thread
From: Stefan Wachter @ 2005-03-17 19:57 UTC (permalink / 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-17 19:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-17 19:57 Is there a bug in switching body fonts? Stefan Wachter

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).