[NTG-context] Re: How to switch between fonts?
Hi Hans, thanks for the information. I changed my test document accordingly and deleted obsolete parts from the typescript. When I use the builtInPostscript or the reencodedPostscript as the sole body font then the document is typeset correctly. Yet, if I try to switch the family for example to the reencodedPostscript then the text that follows after the switch does not appear in the created PDF document. Do you have an idea? --Stefan \enableregime[il1] \setupencoding[default=texnansi] \setupoutput[pdftex] \pdfoptionpdfminorversion 4 \usetypescriptfile[smallpdf.tex] \definetypeface [builtInPostscript] [rm] [serif] [times] [default] [encoding=ec] \definetypeface [builtInPostscript] [ss] [sans] [helvetica] [default] [encoding=ec] \definetypeface [builtInPostscript] [tt] [mono] [courier] [default] [encoding=ec] %\definetypeface [builtInPostscript] [mm] [math] [times] [default] \usetypescript[reencode][texnansi][texnansi] \definetypeface [reencodedPostscript] [rm] [serif] [times] [default] [encoding=texnansi] \definetypeface [reencodedPostscript] [ss] [sans] [helvetica] [default] [encoding=texnansi] \definetypeface [reencodedPostscript] [tt] [mono] [courier] [default] [encoding=texnansi] %\definetypeface [reencodedPostscript] [mm] [math] [times] [default] \setupbodyfont[builtInPostscript,sans,15pt] \mainlanguage[de] \setupheadertexts[] \def\Show{This is a test. 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} \reencodedPostscript {\ss Helvetica\par\ShowVariants} {\rm Times-Roman\par\ShowVariants} {\tt Courier\par\ShowVariants} \stoptext smallpdf.tex Description: TeX document 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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: How to switch between fonts?
Stefan Wachter wrote: When I use the builtInPostscript or the reencodedPostscript as the sole body font then the document is typeset correctly. Yet, if I try to switch the family for example to the reencodedPostscript then the text that follows after the switch does not appear in the created PDF document. Do you have an idea? hard to test without those tfm files (i don't want to clobber my system by generating them; also, i never use the p* variants) looking at your map file: there are no pfb files mentioned ... why? 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 - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: How to switch between fonts?
hard to test without those tfm files (i don't want to clobber my system by generating them; also, i never use the p* variants) I created the vf and tfm files with the attached script. Maybe you can setup a local directory? Creating these fonts simply needs the following calls (the files are generated in the current directory!): fonts.sh path-to-afm-dir adobe helvetic ec fonts.sh path-to-afm-dir adobe times ec fonts.sh path-to-afm-dir adobe courier ec fonts.sh path-to-afm-dir adobe helvetic texnansi texnansi fonts.sh path-to-afm-dir adobe times texnansi texnansi fonts.sh path-to-afm-dir adobe courier texnansi texnansi The first three calls generate virtual fonts that are base on raw fonts with default encoding and the last three calls generate virtual fonts that are based on texnansi reencoded raw fonts. (After studying texfont I think that generating fonts based on the default encoding of raw fonts is not possible with texfont.) I think the generate vf and tfm files are correct because they can be used without problems as long as no family switching occurs. Is there a specific reason why the p* variants should not be used? I hoped that they are very similar to what is present in the different Acrobat Reader versions. looking at your map file: there are no pfb files mentioned ... why? I want to use the built in fonts because the size of the PDF documents must be as small as possible. --Stefan font.sh Description: Bourne shell script ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context