diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-08-15 17:24:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-08-26 00:36:58 +0200 |
commit | 100fe8a3a1724f1a5f834da11e17d1641be20994 (patch) | |
tree | 2eabb9bb131e6f099d815bd7e9069c207f658603 /vcl/qt5 | |
parent | 33c6dcfaab35a70f8794a67d31fbec636cb485d5 (diff) |
automatically set TextRenderModeForResolutionIndependentLayout if we scale
Always render glyphs with a mode suitable for rendering of
resolution-independent layout positions if we scale the text positions.
The idea being to typically continue to use the system defaults for font
settings for UI elements, but where we are rendering into application
canvases where there's a mapmode set then automatically use a good mode
to render that.
Change-Id: I0e5857e377da72ae1a2ede1d88d6408819fc9200
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138324
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/qt5')
-rw-r--r-- | vcl/qt5/QtGraphics_Text.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/qt5/QtGraphics_Text.cxx b/vcl/qt5/QtGraphics_Text.cxx index 940578c5d8bf..03db69dbed6e 100644 --- a/vcl/qt5/QtGraphics_Text.cxx +++ b/vcl/qt5/QtGraphics_Text.cxx @@ -320,7 +320,8 @@ void QtGraphics::DrawTextLayout(const GenericSalLayout& rLayout) { const QtFont* pFont = static_cast<const QtFont*>(&rLayout.GetFont()); assert(pFont); - QRawFont aRawFont(GetRawFont(*pFont, getTextRenderModeForResolutionIndependentLayoutEnabled())); + QRawFont aRawFont( + GetRawFont(*pFont, rLayout.GetTextRenderModeForResolutionIndependentLayout())); QVector<quint32> glyphIndexes; QVector<QPointF> positions; |