summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-11-29 20:23:44 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-11-30 12:14:10 +0100
commit3f6677e9b610acf506e2d2d452f2e9252a1d3803 (patch)
tree393f7e12d71db3925466c634936b8f34e5054d1e /vcl
parentfc7068d648a98619827c2f94374549e3ae2fad65 (diff)
turn cairo_font_options_set_hint_metrics back off again
Change-Id: Ibe6a2682d1fc2eed379cb2d61cd9b3137bf11234 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143473 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/generic/gdi/cairotextrender.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx b/vcl/unx/generic/gdi/cairotextrender.cxx
index 0d2b2c003562..95e11f9614a7 100644
--- a/vcl/unx/generic/gdi/cairotextrender.cxx
+++ b/vcl/unx/generic/gdi/cairotextrender.cxx
@@ -262,7 +262,10 @@ void CairoTextRender::DrawTextLayout(const GenericSalLayout& rLayout, const SalG
// Disable private CAIRO_ROUND_GLYPH_POS_ON by merging with font options known to have
// CAIRO_ROUND_GLYPH_POS_OFF
if (bResolutionIndependentLayoutEnabled)
+ {
cairo_font_options_merge(pOptions, mpRoundGlyphPosOffOptions);
+ cairo_font_options_set_hint_metrics(pOptions, CAIRO_HINT_METRICS_OFF);
+ }
cairo_set_font_options(cr, pOptions);
cairo_font_options_destroy(pOptions);
}