Code

Type3 fonts do not have a name set so default to 'Arial'
authormiklosh <miklosh@users.sourceforge.net>
Mon, 30 Jul 2007 17:09:28 +0000 (17:09 +0000)
committermiklosh <miklosh@users.sourceforge.net>
Mon, 30 Jul 2007 17:09:28 +0000 (17:09 +0000)
src/extension/internal/pdfinput/svg-builder.cpp

index 9fc4fa766ab1e5f3f891d1d51791973d2b22bd3d..3bbe06a575c5d970c619b04aed2034e5e5f345fa 100644 (file)
@@ -758,8 +758,10 @@ void SvgBuilder::updateFont(GfxState *state) {
     // Store original name
     if (font->getOrigName()) {
         _font_specification = font->getOrigName()->getCString();
-    } else {
+    } else if (font->getName()) {
         _font_specification = font->getName()->getCString();
+    } else {
+        _font_specification = "Arial";
     }
 
     // Prune the font name to get the correct font family name