diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-06-04 18:42:53 +0200 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2022-06-06 13:32:43 +0200 |
commit | f1c695f214620aa11c54dc2e9ee33118c83f0e3f (patch) | |
tree | 2451d194d0602c5594f0452faf972b8c7476e33e | |
parent | tdf#136787 Add control to create 1-bit B&W bitmap while creating mask. (diff) | |
download | core-f1c695f214620aa11c54dc2e9ee33118c83f0e3f.tar.gz core-f1c695f214620aa11c54dc2e9ee33118c83f0e3f.zip |
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>
-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(); |