To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=83491





------- Additional comments from [EMAIL PROTECTED] Fri Nov  9 13:00:32 +0000 
2007 -------
Caching the result of the expensive calls to fontconfig would help, but it can 
easily introduce 
inconsistencies:
1. document with string "AB" in fontX (which doesn't support A,B,C)
2. asking fontconfig results in fontY (which supports A,B)
3. a cache from font+char to fallback gets updated with "fontX+A->fontY" and 
"fontX+B->fontY"
4. user edits the document to "BC"
5. asking the cache would return "fontX+B->fontY"
6. asking fontconfig directly could result in fontZ (which supports B and C)
7. when fontX is changed a little to fontX' (e.g. zooming in, underlining, 
stretching)
8. the new fontX' cache would be initialized to fontZ
=> reformatting is needed, etc.

And even with this problematic approach the cache can grow huge very fast, e.g. 
when zooming, 
rotating, stretching, even though in many cases the fontX cache would be 
identical to a fontX' cache. 
Since only fontconfig knows if there are rules that change the fallback 
depending on the size, slant, etc. 
there are easily scenarios where the performance problem can hit us again if 
fontconfig doesn't make 
the calls less expensive and also doesn't provide a way to avoid these calls. 

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to