diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2022-04-27 09:52:04 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2022-05-03 09:08:44 +0200 |
commit | 0a6d946694e4fcb39228c5e1fec58fcfd8a45989 (patch) | |
tree | d070850569d866d7cad376018c018f1a976a9568 /sc/inc/docuno.hxx | |
parent | 6ba14f83add039d0df133febfcf7199c99f8d936 (diff) |
optimize repeated calls for the same string in SalLayoutGlyphsCache
It often happens that the entire text will be laid out in parts,
so if the first call is a prefix and another one follows that,
lay out the entire string and then use the glyph subset optimization.
Doing this only for the second segment instead immediately for
the prefix is more efficient, as sometimes there is only the prefix
call and there's no call for the rest of the string. This also
avoids failures in CppunitTest_sw_layoutwriter, as a number of tests
such as testAbi11870 lay out only a prefix and doing a layout
for the entire string leads to font fallback, on which
CppunitTest_sw_layoutwriter aborts in PrintFontManager::Substitute().
Change-Id: I76554868ec7e8a79dd09709a247ad1d839291c06
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133495
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc/inc/docuno.hxx')
0 files changed, 0 insertions, 0 deletions