summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/pen.h
diff options
context:
space:
mode:
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";