summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8351163)
raw | patch | inline | side by side (parent: 8351163)
author | miklosh <miklosh@users.sourceforge.net> | |
Sat, 17 Nov 2007 23:36:31 +0000 (23:36 +0000) | ||
committer | miklosh <miklosh@users.sourceforge.net> | |
Sat, 17 Nov 2007 23:36:31 +0000 (23:36 +0000) |
src/extension/internal/pdfinput/pdf-parser.cpp | patch | blob | history |
diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp
index 5bf7e0fe700333923e17e913eb1d97a3b1cddb7f..f8e21ab1768f2f913654b9789f27a6d017fe6eb4 100644 (file)
GfxFont *font;
if (!(font = res->lookupFont(args[0].getName()))) {
+ // unsetting the font (drawing no text) is better than using the
+ // previous one and drawing random glyphs from it
+ state->setFont(NULL, args[1].getNum());
+ fontChanged = gTrue;
return;
}
if (printCommands) {