Bug 3838 - very slow loading some Windows fonts
Summary: very slow loading some Windows fonts
Status: RESOLVED NOTABUG
Alias: None
Product: fontconfig
Classification: Unclassified
Component: library (show other bugs)
Version: 2.3
Hardware: x86 (IA32) Windows (All)
: high normal
Assignee: Keith Packard
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-22 14:19 UTC by Tim Evans
Modified: 2006-09-01 11:00 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Correct attachment (8.19 KB, text/comma-separated-values)
2006-04-18 08:46 UTC, Tim Evans
Details

Description Tim Evans 2005-07-22 14:19:46 UTC
Some Windows fonts take a very long time for the win32 build of fontconfig to
load, up to 650ms for a single ttf (ARIALUNI.TTF) or over 3.5 seconds for one
ttc file (mingliu.ttc).  I think most of the problem fonts are international
fonts that are installed with various Windows XP language options (I have all
languages installed to test locale stuff).

Applying the path from Bug #3358 helps a lot, because then the cache works and
the next startup is fast, but the first run still requires several seconds to
build the cache.

Can anything be done to speed this up, or is it unavoidable?
Comment 1 Tim Evans 2005-07-22 14:20:53 UTC
Created attachment 3121 [details]
float.pdf
Comment 2 Dom Lachowicz 2006-04-12 05:34:33 UTC
Tim, that is a CS 708 PDF about floating point numbers. Can you upload your
profile stats please?
Comment 3 Patrick Lam 2006-04-17 01:47:49 UTC
This is a very large ttf, mind you; apparently arialuni is 22MB.
Comment 4 Tim Evans 2006-04-18 08:46:45 UTC
Created attachment 5350 [details]
Correct attachment

I've got no idea where that file came from, sorry.  Hopefully this is the
correct file.
Comment 5 Tim Evans 2006-04-18 08:55:15 UTC
It seems the attachment from bug #3121 ended up attached here instead of the
correct attachment the first time.  As I'm writing this the second attachment is
correct.  I'm blaming bugzilla.
Comment 6 Keith Packard 2006-09-01 11:00:43 UTC
TrueType fonts are broken in various ways; fontconfig works around this by
scanning the entire font once and caching the result. That's why it caches things.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.