https://bugs.documentfoundation.org/show_bug.cgi?id=159232

            Bug ID: 159232
           Summary: LibreOffice loads the single variable TTC font (which
                    named Sarasa Gothic) very slowly
           Product: LibreOffice
           Version: 7.6.4.1 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Description:
When LibreOffice start, it needs to read and load the font files. And I tested
the font named Sarasa
Gothic[https://github.com/be5invis/Sarasa-Gothic/releases/tag/v1.0.3]. In its
release pages, there are two kinds of font packages. "Sarasa-SuperTTC-1.0.3.7z"
is the single variable TTC font package, and "Sarasa-TTC-1.0.3.7z" is the
package which contains the normal separate fonts.

After testing with strace, LibreOffice takes more time (about 2 minutes) to
load the font Sarasa-SuperTTC.ttc. However, LibreOffice takes about 15 seconds
to load all the separate fonts in package "Sarasa-TTC-1.0.3.7z".

Thus I guessed that LibreOffice might have bugs when it comes to handling
single large variable font. And I also created a issue at
[https://gitlab.archlinux.org/archlinux/packaging/packages/ttf-sarasa-gothic/-/issues/1].

Steps to Reproduce:
1. Use the superTTC font package
[https://github.com/be5invis/Sarasa-Gothic/releases/download/v1.0.3/Sarasa-SuperTTC-1.0.3.7z].
2. Install the font, and use strace to debug LibreOffice.
3. Search the debug log, it shows that it took from 8:50 to 8:52 to load
Sarasa-SuperTTC.ttc

Actual Results:
Single large variable font file loads very slowly even though the fonts in two
font packages are identical.

Expected Results:
LibreOffice can handle the single variable font files quickly.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: 60(Build:1)
CPU threads: 8; OS: Linux 6.7; UI render: default; VCL: kf5 (cairo+xcb)
Locale: zh-CN (en_US.UTF-8); UI: zh-CN
7.6.4-2
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to