ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Font for MetaPost graphics
@ 2012-05-03  0:08 Marco
  2012-05-03  0:22 ` Aditya Mahajan
  0 siblings, 1 reply; 17+ messages in thread
From: Marco @ 2012-05-03  0:08 UTC (permalink / raw)
  To: ntg-context

The wiki claims setting up an MPenvironment is enough to change the
font in MetaPost graphics:

\startMPenvironment%[global]
	\switchtobodyfont [sans]
\stopMPenvironment

\starttext
	This should be serif.

	\startMPcode
		draw textext("This should be in sans.");
	\stopMPcode
\stoptext

However, this has no effect. All text is in default serif font. If
[global] is provided, all text is in sans font. I am aware of a
similar issue in a thread last year¹, but the solution didn't really
address the problem. textext("\sans This should be sans.") works
here, but the point is that the MPenvironment fails. Why is that?

Marco

[1] http://thread.gmane.org/gmane.comp.tex.context/69044


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2012-05-10  9:04 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-03  0:08 Font for MetaPost graphics Marco
2012-05-03  0:22 ` Aditya Mahajan
2012-05-03  1:13   ` Marco
2012-05-04  7:10     ` Mojca Miklavec
2012-05-04  7:13       ` Aditya Mahajan
2012-05-04 11:09         ` Marco
2012-05-05 10:26           ` Hans Hagen
2012-05-05 11:24         ` Hans Hagen
2012-05-05 14:07           ` Marco
2012-05-05 16:03             ` Aditya Mahajan
2012-05-08 17:01           ` Marco
2012-05-08 17:08             ` Hans Hagen
2012-05-08 17:19               ` Marco
2012-05-08 17:34                 ` Hans Hagen
2012-05-08 19:57                   ` Marco
2012-05-10  8:55                     ` Procházka Lukáš Ing. - Pontex s. r. o.
2012-05-10  9:04                       ` Marco

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