From 62e3ddd373e2bd1e5adbc7e45af95ba7150c03e6 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 3 Jun 2009 23:38:09 +0000 Subject: asymptote 1.75 git-svn-id: svn://tug.org/texlive/trunk@13620 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/utils/asymptote/pen.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Build/source/utils/asymptote/pen.h') 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("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"; -- cgit v1.2.3