svx/source/sdr/primitive2d/sdrattributecreator.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b566dab48c1448dbc5442b30396e9f6c482f2408
Author:     Balazs Varga <balazs.varga.ext...@allotropia.de>
AuthorDate: Thu Sep 26 12:15:46 2024 +0200
Commit:     Balazs Varga <balazs.varga.ext...@allotropia.de>
CommitDate: Sun Sep 29 19:58:08 2024 +0200

    Related: tdf#161826 - A bit more accurate Glow effect for texts in shapes
    
    With a more accurate exponentiation function the text glow effect, maybe
    can be more accurate comaparing to the MSO.
    
    follow-up commit: 3eac847927a0cdfa40c3fea38c473ed2ad7faecc and
    5bb5a7ea60c4496d7ad21ad81a0f37f6f5fd2288
    
    Change-Id: I82d6fae0564b8d9f5b519408b54a0937a674c643
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173980
    Tested-by: Jenkins
    Reviewed-by: Balazs Varga <balazs.varga.ext...@allotropia.de>

diff --git a/svx/source/sdr/primitive2d/sdrattributecreator.cxx 
b/svx/source/sdr/primitive2d/sdrattributecreator.cxx
index f1628354283d..bf6cdb7c4571 100644
--- a/svx/source/sdr/primitive2d/sdrattributecreator.cxx
+++ b/svx/source/sdr/primitive2d/sdrattributecreator.cxx
@@ -246,10 +246,10 @@ namespace drawinglayer
 
             if (nFontSize)
             {
-                // Rendering_glow_size = Original_glow_size / (154.39 * 
FontSize ^ -0,621)
+                // Rendering_glow_size = Original_glow_size / (154.39 * 
FontSize ^ -0,575)
                 // This is an approximate calculation similar to MSO text glow 
size which is
                 // depending on font size
-                nRadius = nTextRadius / (154.39 * pow(nFontSize, -0.621));
+                nRadius = nTextRadius / (154.39 * pow(nFontSize, -0.575));
                 nTextRadius = std::round(nRadius);
             }
 

Reply via email to