summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/pen.h
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-06-08 00:57:31 +0000
committerKarl Berry <karl@freefriends.org>2009-06-08 00:57:31 +0000
commit9e32dd6aee7faf4e59888cfbd7a927d497b563ad (patch)
tree5068ec13390f4352be663383dd58e22147e68201 /Build/source/utils/asymptote/pen.h
parent3f49bad6cd5234b4e0ea156f6f68f6430643c10f (diff)
asymptote 1.76
git-svn-id: svn://tug.org/texlive/trunk@13664 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/pen.h')
-rw-r--r--Build/source/utils/asymptote/pen.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/Build/source/utils/asymptote/pen.h b/Build/source/utils/asymptote/pen.h
index 6f4e6701fbe..164698b8b68 100644
--- a/Build/source/utils/asymptote/pen.h
+++ b/Build/source/utils/asymptote/pen.h
@@ -15,6 +15,9 @@
namespace camp {
+static const double tex2ps=72.0/72.27;
+static const double ps2tex=1.0/tex2ps;
+
static const string DEFPAT="<default>";
static const string DEFLATEXFONT="\\usefont{\\ASYencoding}{\\ASYfamily}{\\ASYseries}{\\ASYshape}";
static const string DEFCONTEXTFONT="modern";
@@ -399,11 +402,11 @@ public:
// Work around misalignment in ConTeXt switchtobodyfont if font is not found.
if(texengine == "context")
buf << "\\switchtobodyfont["
- << DEFCONTEXTFONT << "," << size()
+ << DEFCONTEXTFONT << "," << size()*ps2tex
<< "pt]\\removeunwantedspaces%" << newl;
else
buf << "\\font\\ASYfont=" << DEFTEXFONT
- << " at " << size() << "pt\\ASYfont";
+ << " at " << size()*ps2tex << "pt\\ASYfont";
return buf.str();
}
}