vcl: add unit test for cached glyphs based on tdf#103492
Change-Id: Id66be996053435c92b667eb142ae1e271ff33b90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159386
Tested-by: Jenkins
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
diff --git a/vcl/qa/cppunit/complextext.cxx b/vcl/qa/cppunit/complextext.cxx
index d4eb3db6..37f4fbc 100644
--- a/vcl/qa/cppunit/complextext.cxx
+++ b/vcl/qa/cppunit/complextext.cxx
@@ -191,6 +191,8 @@ CPPUNIT_TEST_FIXTURE(VclComplexTextTest, testCaching)
testCachedGlyphs( "test", "Dejavu Sans" );
// This font does not have latin characters, will need fallback.
testCachedGlyphs( "test", "Noto Kufi Arabic" );
// see tdf#103492
testCachedGlyphs( u"يوسف My name is"_ustr, "Liberation Sans");
}
static void testCachedGlyphsSubstring( const OUString& aText, const OUString& aFontName, bool rtl )