diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-06-04 18:42:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-04 20:33:18 +0200 |
commit | 6aaa3e617523783b98bc68e260a3a7b4912d11b8 (patch) | |
tree | 77724a506444b3815c19a617ffb0257dae379d86 /svx/source/styles | |
parent | 428cc8da98ddb73f8abeaa3bddb555f3bd896a29 (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>
Diffstat (limited to 'svx/source/styles')
-rw-r--r-- | svx/source/styles/CommonStylePreviewRenderer.cxx | 5 |
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(); |