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 /starmath | |
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 'starmath')
-rw-r--r-- | starmath/source/ElementsDockingWindow.cxx | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx index 202396dfc282..49eea01ddb2a 100644 --- a/starmath/source/ElementsDockingWindow.cxx +++ b/starmath/source/ElementsDockingWindow.cxx @@ -506,7 +506,6 @@ void SmElementsControl::addElement(const OUString& aElementVisual, const OUStrin { std::unique_ptr<SmNode> pNode = maParser->ParseExpression(aElementVisual); VclPtr<VirtualDevice> pDevice(mpIconView->create_virtual_device()); - pDevice->SetTextRenderModeForResolutionIndependentLayout(true); pDevice->SetMapMode(MapMode(MapUnit::Map100thMM)); pDevice->SetDrawMode(DrawModeFlags::Default); pDevice->SetLayoutMode(vcl::text::ComplexTextLayoutFlags::Default); |