On Wednesday 19 April 2006 18:44, 陆然 wrote:
There might be some regression, a test sub is in the attachment, the old code put the sub in the middle of the picture, but with the new code the sub I cannot find the sub anywhere.
* Line breaking for CJK.
When I have a long sentence with only one space in it, the break will accumulate at the space, since the code cannot tell if the space has already been used as a break.
And two problem about fontconfig: 1. make 'Arial' the default font is not a good idea IMHO, all the cjk glyphs are missing. 2. the code use strcmp to test if the font provided by fontconfig is the font requested, too bad the comparison is case sensitive. If I specify a font 'arial' in the sub it will never be found.
Arial is the default according to specification. You can use fontconfig=yes font=<font family> to change this behavior. Attached version also uses fontconfig=no, font=<path> ahead of Arial. Other things you mentioned are also fixed.