From d90afc0adca2e62976982939580d44ef3a1c8b2e Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Fri, 17 Nov 2006 18:15:30 +0100 Subject: store necessary font in variable to avoid problems with embedded fonts (reported by Volker Kuhlmann) --- src/Postscript.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3