summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-06-04 18:42:53 +0200
committerAndras Timar <andras.timar@collabora.com>2022-06-09 11:02:06 +0200
commitf328068f5d337d8cbdff67d1a55fb359759c4874 (patch)
treee15f04e48427193d82d7c3c031219493f5752551 /svx
parentf6704b03aea9087fee2470de04d03f35bbc4887d (diff)
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.grandin@collabora.co.uk> (cherry picked from commit 6aaa3e617523783b98bc68e260a3a7b4912d11b8) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135377 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/styles/CommonStylePreviewRenderer.cxx5
1 files changed, 4 insertions, 1 deletions
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();