From 082cac3fb4c7fc60e92bbd4de269550801dcea6b Mon Sep 17 00:00:00 2001 From: miklosh Date: Mon, 30 Jul 2007 17:09:28 +0000 Subject: [PATCH] Type3 fonts do not have a name set so default to 'Arial' --- src/extension/internal/pdfinput/svg-builder.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp index 9fc4fa766..3bbe06a57 100644 --- a/src/extension/internal/pdfinput/svg-builder.cpp +++ b/src/extension/internal/pdfinput/svg-builder.cpp @@ -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 -- 2.30.2