File fix_harfbuzz_on_sle12_sp5.patch of Package libreoffice.28836

Index: libreoffice-7.5.1.2/vcl/source/font/fontmetric.cxx
===================================================================
--- libreoffice-7.5.1.2.orig/vcl/source/font/fontmetric.cxx
+++ libreoffice-7.5.1.2/vcl/source/font/fontmetric.cxx
@@ -549,20 +549,7 @@ void ImplFontMetricData::ImplInitBaselin
     double fScale = 0;
     pFontInstance->GetScale(nullptr, &fScale);
     hb_position_t nBaseline = 0;
-
-    if (hb_ot_layout_get_baseline(pHbFont,
-             HB_OT_LAYOUT_BASELINE_TAG_HANGING,
-                                HB_DIRECTION_INVALID,
-                                HB_SCRIPT_UNKNOWN,
-                                HB_TAG_NONE,
-                                &nBaseline))
-    {
-        mnHangingBaseline = nBaseline * fScale;
-    }
-    else
-    {
-        mnHangingBaseline = 0;
-    }
+    mnHangingBaseline = 0;
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
openSUSE Build Service is sponsored by