summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-09-21 15:31:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-09-21 20:37:07 +0200
commit5468a58c3244cf98341945c17db040b067c825f7 (patch)
treecfcb0781e6c91a7f3984ebe0720712c849c8cd70 /vcl
parent8f5f0c754222425af019a9fdc1ba47d72c541d9e (diff)
crashtesting: disable glyph caching for "XB Roya" font
as seen in tdf119074-1.odt. harfbuzz upstream bug of https://github.com/harfbuzz/harfbuzz/issues/3824 filed to look for guidance. Change-Id: I792f86334c2a2958b175a0e14334a0a7a6ba81d8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140345 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/impglyphitem.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/gdi/impglyphitem.cxx b/vcl/source/gdi/impglyphitem.cxx
index 7bed1391c0d5..a8eed4a02020 100644
--- a/vcl/source/gdi/impglyphitem.cxx
+++ b/vcl/source/gdi/impglyphitem.cxx
@@ -327,6 +327,10 @@ SalLayoutGlyphsCache::GetLayoutGlyphs(VclPtr<const OutputDevice> outputDevice, c
if (nLen == 0)
return nullptr;
const CachedGlyphsKey key(outputDevice, text, nIndex, nLen, nLogicWidth);
+ // for now disable if the font is the one seen in tdf#119074
+ // https://github.com/harfbuzz/harfbuzz/issues/3824
+ if (key.fontMetric.GetFamilyName() == "XB Roya")
+ return nullptr;
GlyphsCache::const_iterator it = mCachedGlyphs.find(key);
if (it != mCachedGlyphs.end())
{