summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 38b01bf)
raw | patch | inline | side by side (parent: 38b01bf)
| author | theAdib <theAdib@users.sourceforge.net> | |
| Tue, 26 Dec 2006 13:53:56 +0000 (13:53 +0000) | ||
| committer | theAdib <theAdib@users.sourceforge.net> | |
| Tue, 26 Dec 2006 13:53:56 +0000 (13:53 +0000) |
| src/extension/internal/ps.cpp | patch | blob | history |
index ea446afea214f9806a9b3b7192ab1935c115839f..dc03e142a9ca22fa40d1564d0d42403b94bcf0f1 100644 (file)
#include <string>
#include <iostream>
#include <fstream>
+
using namespace std;
namespace Inkscape {
@@ -1335,10 +1336,16 @@ PrintPS::text(Inkscape::Extension::Print *mod, char const *text, NR::Point p,
"definefont} def\n"; // create the new font and leave it on the stack, define the proc
_newlatin1font_proc_defined = true;
}
- os << "/" << fn << "-ISOLatin1 /" << fn << " newlatin1font\n";
+ if(strchr(fn, ' ') == NULL)
+ os << "/" << fn << "-ISOLatin1 /" << fn << " newlatin1font\n";
+ else
+ os << "(/" << fn << "-ISOLatin1) (/" << fn << ") newlatin1font\n";
_latin1_encoded_fonts.insert(fn);
} else
- os << "/" << fn << "-ISOLatin1 findfont\n";
+ if(strchr(fn, ' ') == NULL)
+ os << "/" << fn << "-ISOLatin1 findfont\n";
+ else
+ os << "(/" << fn << "-ISOLatin1) findfont\n";
}
os << style->font_size.computed << " scalefont\n";
os << "setfont\n";