vcl/source/font/fontcache.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 658c2c98c98662eb06f22c1b743f10281e191c16
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Apr 11 17:00:07 2023 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Apr 11 20:34:08 2023 +0200

    tdf#154753 if substituting with OpenSymbol check if there for a recode
    
    entry for that font->OpenSymbol conversion. It might make sense to drop
    the conditionals and just use the result of ConvertChar::GetRecodeData
    if there are any, but keep close to what has worked historically.
    
    Change-Id: Idf9ee0f8068f1ff8e7f179ba5087763e44ade268
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150241
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/source/font/fontcache.cxx b/vcl/source/font/fontcache.cxx
index 3fcf7ee1a7a8..c0dba153502e 100644
--- a/vcl/source/font/fontcache.cxx
+++ b/vcl/source/font/fontcache.cxx
@@ -155,7 +155,7 @@ rtl::Reference<LogicalFontInstance> 
ImplFontCache::GetFontInstance( PhysicalFont
 
         // if we're substituting from or to a symbol font we may need a symbol
         // conversion table
-        if( pFontData->IsMicrosoftSymbolEncoded() || 
aFontSelData.IsMicrosoftSymbolEncoded() )
+        if( pFontData->IsMicrosoftSymbolEncoded() || 
aFontSelData.IsMicrosoftSymbolEncoded() || 
IsOpenSymbol(aFontSelData.maSearchName) )
         {
             if( aFontSelData.maTargetName != aFontSelData.maSearchName )
                 pFontInstance->mpConversion = ConvertChar::GetRecodeData( 
aFontSelData.maTargetName, aFontSelData.maSearchName );

Reply via email to