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





------- Additional comments from [email protected] Wed Sep 23 06:59:07 
+0000 2009 -------
@hdu: In consideration of performance and text output quality, I designed a 2-
level font fallback algorithm for windows platform based on the implementation 
before. Pseudo-code below gives a great simple description:

input:  missing string
output: font face

//First level fall back, be fast and cover most cases
determine the language of missing string
get UI default font face df with language type of missing string 

if df contains the characters of missing string
      return df;

//second level fall back, slow but only a few cases need 
for each fontface in ImplDevFontList {
        if fontface contains the missing string
                return fontface;
        else
                next;
}

The advantages of the above algorithm is,

1. 1st level fall back is quick, and a approriciate font can be got for the 
missing characters in most circumstances. 

2. Though 2nd level fall back seems awkward and stupid, but useful in a very 
few 
circumenstances. For example, some non-bmp Chinese characters can be presented 
in controls with 2nd level fallback.

several experiments show it really work well. I will submit a patch after the 
implementation being refined. 

---------------------------------------------------------------------
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