[Bug 1590804] Re: fontconfig initialization spends most of its time parsing XML configuration files in /etc/fonts/conf.d/

Alberto Aguirre alberto.aguirre at canonical.com
Thu Jun 23 15:30:59 UTC 2016


>From the attached backtrace, It seems that Qt calls FcInitReinitialize
when populating its font database (a QGenericUnixFontDatabase instance
provided by Qtubuntu) - that explains why re-parses the conf files
everytime.

See
http://code.qt.io/cgit/qt/qtbase.git/tree/src/platformsupport/fontdatabases/fontconfig/qfontconfigdatabase.cpp?h=v5.4.1#n439


** Attachment added: "backtrace.txt"
   https://bugs.launchpad.net/ubuntu/+source/fontconfig/+bug/1590804/+attachment/4689148/+files/backtrace.txt

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to fontconfig in Ubuntu.
https://bugs.launchpad.net/bugs/1590804

Title:
  fontconfig initialization spends most of its time parsing XML
  configuration files in /etc/fonts/conf.d/

Status in Canonical System Image:
  New
Status in fontconfig package in Ubuntu:
  New

Bug description:
  While profiling the startup of QML apps on the BQ E4.5 phone (armhf) I noticed that a significant amount of time (around 35ms) was spent solely on parsing the XML configuration files in /etc/fonts/conf.d/ 
  There seems to be around 40 files on Ubuntu Phone in that directory.

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1590804/+subscriptions



More information about the foundations-bugs mailing list