diff options
author | Balazs Varga <balazs.varga.extern@allotropia.de> | 2024-09-26 12:15:46 +0200 |
---|---|---|
committer | Balazs Varga <balazs.varga.extern@allotropia.de> | 2024-09-29 19:58:08 +0200 |
commit | b566dab48c1448dbc5442b30396e9f6c482f2408 (patch) | |
tree | 4798f826557f554b0e1c2e7b36878dc55865aa8e | |
parent | 15492ec2d25db324ce60d5994563eb86bbbf992f (diff) |
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.extern@allotropia.de>
-rw-r--r-- | svx/source/sdr/primitive2d/sdrattributecreator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |