summaryrefslogtreecommitdiff
path: root/vcl/qt5/Qt5Font.cxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-03-11 15:34:41 +0100
committerLuboš Luňák <l.lunak@collabora.com>2021-03-17 22:48:45 +0100
commit3f69ec9ab4236de13d229f675943123aeb42ea29 (patch)
treed970f0046bb4a5f55df4aa238d5d1bf68e066483 /vcl/qt5/Qt5Font.cxx
parenta001a66ba27e2fe9a485388869d53f001f2b09af (diff)
improve font caching in SwFntObj
The code previously cached only SalGlyphItems, but such caching fails if SalLayout::GetGlyphs() does not return valid glyphs, which is the case with MultiSalLayout. Worse, it not only fails, but layout is once computed for caching, that fails, and is computed a second time for actual use. This improved cache caches the result of GetTextWidth(), which itself improves the performance a bit, but it also allows caching the value for GetGlyph() not returning valid glyphs. Moreover this also caches failures to get valid glyphs from GetGlyphs(). There are quite some calls to GetTextArray(), I didn't cache those, but it might be added if needed. Change-Id: Ia2589fb1b778f4f154c88f65d9906584284239da Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112588 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/qt5/Qt5Font.cxx')
0 files changed, 0 insertions, 0 deletions