From 52040395e3046ac42b8c3dd385c7b1cb26b929f3 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Thu, 13 Oct 2016 21:22:55 +0200 Subject: tdf#34212: Accented Characters and Umlauts are missing with Type1 fonts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Following the revert of previous patch: https://cgit.freedesktop.org/libreoffice/core/commit/?id=297b22bd49ea11a90063ab8503fb83090f351668 Gilbert Röhrbein proposed this patch See https://bugs.documentfoundation.org/show_bug.cgi?id=34212#c14 Change-Id: I1a30427cd88f5602e7633894ba35307104c2ed8d Reviewed-on: https://gerrit.libreoffice.org/29792 Tested-by: Jenkins Reviewed-by: jan iversen --- vcl/source/gdi/pdfwriter_impl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 7c4e8088b686..d2fb836e436c 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -3556,7 +3556,7 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const Physical "<IsSymbolFont() && pEncoding == nullptr ) + if( !pFont->IsSymbolFont() && ( pEncoding == nullptr || pFont->GetCharSet() == RTL_TEXTENCODING_MS_1252 )) aLine.append( "/Encoding/WinAnsiEncoding\n" ); if( nToUnicodeStream ) { -- cgit v1.2.3