diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2016-10-13 21:22:55 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-12-07 08:57:42 +0000 |
commit | b35798df2c1f6a05d8a3a28843c64c6da548f741 (patch) | |
tree | 7e91224b0ba1ea697834dc093e140408227cc34a | |
parent | 6c2dae8259bf666d906b4d0c1ccd64aa14c6500c (diff) |
tdf#34212: Accented Characters and Umlauts are missing with Type1 fonts
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 <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
(cherry picked from commit 52040395e3046ac42b8c3dd385c7b1cb26b929f3)
Reviewed-on: https://gerrit.libreoffice.org/30852
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 38913030bc20..458ecbae64e3 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -3539,7 +3539,7 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const Physical "<</Type/Font/Subtype/Type1/BaseFont/" ); appendName( aInfo.m_aPSName, aLine ); aLine.append( "\n" ); - if( !pFont->IsSymbolFont() && pEncoding == nullptr ) + if( !pFont->IsSymbolFont() && ( pEncoding == nullptr || pFont->GetCharSet() == RTL_TEXTENCODING_MS_1252 )) aLine.append( "/Encoding/WinAnsiEncoding\n" ); if( nToUnicodeStream ) { |