summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-11-17 18:15:30 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-11-17 18:15:30 +0100
commitd90afc0adca2e62976982939580d44ef3a1c8b2e (patch)
treed7a6f74a653b48306b27af8e88a4cc1e601cc4bd
parent601e974386dc9ec42fec4b6f4963b68c608a0d07 (diff)
store necessary font in variable to avoid problems with embedded fonts (reported by Volker Kuhlmann)
-rw-r--r--src/Postscript.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Postscript.cxx b/src/Postscript.cxx
index ad95549..ee7b112 100644
--- a/src/Postscript.cxx
+++ b/src/Postscript.cxx
@@ -27,7 +27,7 @@
#define PS_POS_FORMAT "newpath %d %d moveto\n"
#define PS_TEXT_FORMAT "(%s) show\n"
-#define PS_SIZE_FORMAT "/Helvetica findfont %d scalefont setfont\n"
+#define PS_SIZE_FORMAT "PSEditWidgetFontHelvetica %d scalefont setfont\n"
#define PS_COLOR_FORMAT "%lf %lf %lf setrgbcolor\n"
#define PS_GLYPH_FORMAT "/%s glyphshow\n"
#define PS_TAG_FORMAT ""
@@ -403,6 +403,7 @@ char * PSLevel1Writer::ps_header() {
return
"/PSEditWidgetPageCount 0 def\n"
"/PSEditWidgetPC 0 def\n"
+ "/PSEditWidgetFontHelvetica /Helvetica findfont def\n"
"/PSEditWidgetshowpage /showpage load def\n"
"/showpage {\n"
"gsave initgraphics\n"