summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/pen.h
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-06-03 23:38:09 +0000
committerKarl Berry <karl@freefriends.org>2009-06-03 23:38:09 +0000
commit62e3ddd373e2bd1e5adbc7e45af95ba7150c03e6 (patch)
treebe497aba8d1c52ad428bf5649c53abb9fa59f8ff /Build/source/utils/asymptote/pen.h
parent37f7f3460f7d20564974e440e873a84ca4570529 (diff)
asymptote 1.75
git-svn-id: svn://tug.org/texlive/trunk@13620 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/pen.h')
-rw-r--r--Build/source/utils/asymptote/pen.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/Build/source/utils/asymptote/pen.h b/Build/source/utils/asymptote/pen.h
index 755d7262be6..6f4e6701fbe 100644
--- a/Build/source/utils/asymptote/pen.h
+++ b/Build/source/utils/asymptote/pen.h
@@ -396,12 +396,11 @@ public:
return settings::getSetting<string>("textinitialfont");
else {
ostringstream buf;
- // Protect context switchtobodyfont with gsave/grestore to prevent
- // misalignment if font is not found.
+ // Work around misalignment in ConTeXt switchtobodyfont if font is not found.
if(texengine == "context")
- buf << "\\special{pdf:q}\\switchtobodyfont["
- << DEFCONTEXTFONT << "," << size() << "pt]\\special{pdf:Q}%"
- << newl;
+ buf << "\\switchtobodyfont["
+ << DEFCONTEXTFONT << "," << size()
+ << "pt]\\removeunwantedspaces%" << newl;
else
buf << "\\font\\ASYfont=" << DEFTEXFONT
<< " at " << size() << "pt\\ASYfont";