svtools/source/misc/embedhlp.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 57f02bb1015e7fc811b57ed618eefd54b9465426
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Thu Apr 4 09:19:27 2024 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Thu Apr 4 11:38:18 2024 +0200

    svtools: improve font name in EmbeddedObjectRef::DrawPaintReplacement()
    
    Once CppunitTest_sw_uibase_shells sets non_application_font_use to
    abort, it would fail here with:
    
    warn:vcl.fonts:29463:29463:vcl/unx/generic/fontmanager/fontconfig.cxx:1192: 
PrintFontManager::Substitute: missing font: 'Helvetica' try: Liberation Sans 
instead
    
    Fix the problem similar to what commit
    1d9221ebc86f2696a65c12287ea19eea44d680cf (tdf#124601 sw: fix misplaced
    images in table cells, 2022-11-30) did: use a font that we ship to avoid
    font fallback.
    
    Change-Id: I1301c546d7cce90f0e687bc0db9dc69262eed4a8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165779
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>
    Tested-by: Jenkins

diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx
index 370d0f6b10ca..38321e843e0d 100644
--- a/svtools/source/misc/embedhlp.cxx
+++ b/svtools/source/misc/embedhlp.cxx
@@ -742,7 +742,7 @@ void EmbeddedObjectRef::DrawPaintReplacement( const 
tools::Rectangle &rRect, con
 {
     MapMode aMM( MapUnit::MapAppFont );
     Size aAppFontSz = pOut->LogicToLogic( Size( 0, 8 ), &aMM, nullptr );
-    vcl::Font aFnt( "Helvetica", aAppFontSz );
+    vcl::Font aFnt( "Noto Sans", aAppFontSz );
     aFnt.SetTransparent( true );
     aFnt.SetColor( COL_LIGHTRED );
     aFnt.SetWeight( WEIGHT_BOLD );

Reply via email to