oox/source/drawingml/textparagraphproperties.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 8716721f4645078b04770271c71f7687a2b21e07
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Mar 2 16:55:35 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Mar 2 22:15:38 2022 +0100

    Related: tdf#147283 set a concrete weight for the bullet font
    
    otherwise it's unknown and on a glyph fallback the resolved true weight
    won't match so glyph fallback cache can't be hit
    
    Change-Id: I2dcce3dc1532e9ee00a1e1980752df9f5053c77c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130892
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/oox/source/drawingml/textparagraphproperties.cxx 
b/oox/source/drawingml/textparagraphproperties.cxx
index 70f1ac0c937b..75dbf6bcea4a 100644
--- a/oox/source/drawingml/textparagraphproperties.cxx
+++ b/oox/source/drawingml/textparagraphproperties.cxx
@@ -23,6 +23,7 @@
 #include <com/sun/star/container/XIndexReplace.hpp>
 #include <com/sun/star/text/HoriOrientation.hpp>
 #include <com/sun/star/awt/FontDescriptor.hpp>
+#include <com/sun/star/awt/FontWeight.hpp>
 #include <com/sun/star/awt/XBitmap.hpp>
 #include <com/sun/star/graphic/XGraphic.hpp>
 #include <com/sun/star/beans/PropertyValue.hpp>
@@ -303,6 +304,7 @@ void BulletList::pushToPropMap( const 
::oox::core::XmlFilterBase* pFilterBase, P
     OUString aBulletFontName;
     sal_Int16 nBulletFontPitch = 0;
     sal_Int16 nBulletFontFamily = 0;
+    float nBulletFontWeight = css::awt::FontWeight::NORMAL;
     bool bSymbolFont = false;
     if( pFilterBase) {
         if (maBulletFont.getFontData( aBulletFontName, nBulletFontPitch, 
nBulletFontFamily, *pFilterBase ) )
@@ -316,6 +318,7 @@ void BulletList::pushToPropMap( const 
::oox::core::XmlFilterBase* pFilterBase, P
             aFontDesc.Name = aBulletFontName;
             aFontDesc.Pitch = nBulletFontPitch;
             aFontDesc.Family = nBulletFontFamily;
+            aFontDesc.Weight = nBulletFontWeight;
             if ( aBulletFontName.equalsIgnoreAsciiCase("Wingdings") ||
                  aBulletFontName.equalsIgnoreAsciiCase("Wingdings 2") ||
                  aBulletFontName.equalsIgnoreAsciiCase("Wingdings 3") ||

Reply via email to