ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Metafun, Font
@ 2002-04-05 21:37 Patrick Gundlach
  2002-04-07  8:20 ` Hans Hagen
  2002-04-07 20:15 ` Patrick Gundlach
  0 siblings, 2 replies; 3+ messages in thread
From: Patrick Gundlach @ 2002-04-05 21:37 UTC (permalink / raw)


Hi, 

again a font problem :)

that is my type-tetex.tex:
-----------------------------------------------------
% Times-Roman
\starttypescript [tetexnames][ec]
 \definefontsynonym [Times-Roman]      [ptmr8t]  [encoding=ec]
 \definefontsynonym [Times-Italic]     [ptmri8t] [encoding=ec]
 \definefontsynonym [Times-Bold]       [ptmb8t]  [encoding=ec]
 \definefontsynonym [Times-BoldItalic] [ptmbi8t] [encoding=ec]
 \definefontsynonym [Times-Slanted]    [ptmro8t] [encoding=ec]
 \definefontsynonym [Times-BoldSlanted][ptmbo8t] [encoding=ec]
 \definefontsynonym [Times-Caps]       [ptmrc8t] [encoding=ec]
 \definefontsynonym [Times-BoldCaps]   [ptmbc8t] [encoding=ec]
\stoptypescript
\starttypescript[serif][tetextimes][name]
 \definefontsynonym [Serif]           [Times-Roman]
 \definefontsynonym [SerifItalic]     [Times-Italic]
 \definefontsynonym [SerifBold]       [Times-Bold]        
 \definefontsynonym [SerifBoldItalic] [Times-BoldItalic]  
 \definefontsynonym [SerifSlanted]    [Times-Slanted]     
 \definefontsynonym [SerifBoldSlanted][Times-BoldSlanted] 
 \definefontsynonym [SerifCaps]       [Times-Caps] 
 \definefontsynonym [SerifBoldCaps]   [Times-BoldCaps] 
\stoptypescript
-----------------------------------------------------

and here is the problem child:
-----------------------------------------------------
\setupencoding[default=ec]
\usetypescriptfile[type-tetex]
\usetypescript[tetexnames][ec]
\definetypeface [patrick] [rm] [serif] [tetextimes] [default] [encoding=ec]

\starttext
\switchtobodyfont[patrick]
%typeset in Times-Roman
The quick brown fox ...

\startMPenvironment 
 \switchtobodyfont[patrick]
\stopMPenvironment 

\startMPcode
draw btex Good Morning etex; % this gets typeset in cmr
\stopMPcode

\stoptext
\endinput
-----------------------------------------------------

How can I make the Good Morning appear in 'patrick' aka Times-Roman?!?

-- 
Viele Grüße, 

    Patrick Gundlach


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Metafun, Font
  2002-04-05 21:37 Metafun, Font Patrick Gundlach
@ 2002-04-07  8:20 ` Hans Hagen
  2002-04-07 20:15 ` Patrick Gundlach
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2002-04-07  8:20 UTC (permalink / raw)
  Cc: ntg-context

At 11:37 PM 4/5/2002 +0200, Patrick Gundlach wrote:

\startMPenvironment[+]

>\setupencoding[default=ec]
>\usetypescriptfile[type-tetex]
>\usetypescript[tetexnames][ec]
>\definetypeface [patrick] [rm] [serif] [tetextimes] [default] [encoding=ec]
>
>\switchtobodyfont[patrick]

\stopMPenvironment

>How can I make the Good Morning appear in 'patrick' aka Times-Roman?!?

the [+] makes it an mp env as well as document one

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-ade.nl
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Metafun, Font
  2002-04-05 21:37 Metafun, Font Patrick Gundlach
  2002-04-07  8:20 ` Hans Hagen
@ 2002-04-07 20:15 ` Patrick Gundlach
  1 sibling, 0 replies; 3+ messages in thread
From: Patrick Gundlach @ 2002-04-07 20:15 UTC (permalink / raw)


Hallo Patrick :) (and all the others)

> again a font problem :)

thanks to Willi Egger (and Hans of course), everything works fine. I should 
have included the complete fontsetup into 
\startMPenvironment...\stopMPenvironment.
-- 
Viele Grüße, 

    Patrick Gundlach


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-04-07 20:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-05 21:37 Metafun, Font Patrick Gundlach
2002-04-07  8:20 ` Hans Hagen
2002-04-07 20:15 ` Patrick Gundlach

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