svx/source/styles/CommonStylePreviewRenderer.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit f1c695f214620aa11c54dc2e9ee33118c83f0e3f
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Sat Jun 4 18:42:53 2022 +0200
Commit:     Adolfo Jayme Barrientos <fit...@ubuntu.com>
CommitDate: Mon Jun 6 13:32:43 2022 +0200

    tdf#149304 Stylist does not show upper/lower case font effects
    
    SvxFont has code to handle these extra features, we just need
    to call that
    
    Change-Id: I45691efeeead3ea60ab838eeb081fa5f19a76b90
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135428
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    (cherry picked from commit 6aaa3e617523783b98bc68e260a3a7b4912d11b8)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135377
    Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com>

diff --git a/svx/source/styles/CommonStylePreviewRenderer.cxx 
b/svx/source/styles/CommonStylePreviewRenderer.cxx
index 79f8376b0ae8..7ad9c8697dd1 100644
--- a/svx/source/styles/CommonStylePreviewRenderer.cxx
+++ b/svx/source/styles/CommonStylePreviewRenderer.cxx
@@ -218,7 +218,10 @@ bool CommonStylePreviewRenderer::render(const 
tools::Rectangle& aRectangle, Rend
             aFontDrawPosition.AdjustY((aRectangle.GetHeight() - 
aPixelSize.Height()) / 2 );
     }
 
-    mrOutputDev.DrawText(aFontDrawPosition, rText);
+    if (m_pFont)
+        m_pFont->QuickDrawText( &mrOutputDev, aFontDrawPosition, rText, 0, 
rText.getLength(), {} );
+    else
+        mrOutputDev.DrawText(aFontDrawPosition, rText);
 
     mrOutputDev.Pop();
 

Reply via email to