summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-02-04 15:13:28 +0000
committerMichael Stahl <michael.stahl@allotropia.de>2022-02-07 15:11:50 +0100
commit12b519fbc3685a83bd6bf05052d26d9ce551243a (patch)
treeba58f505527a24d1f01a476439d70ac1f1d2e579
parent7568e76d4f6a2d0fcbf61fc8e532d3d1848089af (diff)
this test assumes KacstBook has no Latin glyphs
which is true for the one bundled with LibreOffice but is not true for the fedora one (kacst-book-fonts-2.0-26.fc35), but neither of them have Cyrillic glyphs Change-Id: Ide8b84502886c7b9e0bc4fcef4685b4b89ec2bc3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129436 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
-rw-r--r--vcl/qa/cppunit/text.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/qa/cppunit/text.cxx b/vcl/qa/cppunit/text.cxx
index 072a0d0a1f98..3647589a38d1 100644
--- a/vcl/qa/cppunit/text.cxx
+++ b/vcl/qa/cppunit/text.cxx
@@ -690,7 +690,8 @@ void VclTextTest::testImplLayoutArgs_PrepareFallback_precalculatedglyphs()
ScopedVclPtrInstance<VirtualDevice> pVirDev;
pVirDev->SetFont(aFont);
- const OUString sTestString = "The quick\n jumped over";
+ const OString sUTF8String(u8"Тхе яуицк\n ыумпед овер");
+ const OUString sTestString(OUString::fromUtf8(sUTF8String));
std::unique_ptr<SalLayout> pLayout
= pVirDev->ImplLayout(sTestString, 0, sTestString.getLength(), Point(0, 0), 0, {},
SalLayoutFlags::GlyphItemsOnly);
@@ -698,7 +699,8 @@ void VclTextTest::testImplLayoutArgs_PrepareFallback_precalculatedglyphs()
SalLayoutGlyphsImpl* pGlyphsImpl = aGlyphs.Impl(1);
vcl::text::ImplLayoutArgs aArgs(sTestString, 0, sTestString.getLength(),
- SalLayoutFlags::BiDiRtl, LanguageTag(LANGUAGE_LATIN), nullptr);
+ SalLayoutFlags::BiDiRtl, LanguageTag(LANGUAGE_RUSSIAN),
+ nullptr);
aArgs.PrepareFallback(pGlyphsImpl);