Mike Maxwell wrote:
> 
> Sorry, it took me awhile to get to this (and to solve a problem with 
> getting any changes to the fontconfig.properties file to work--turned 
> out I had the version of XXE which includes a Java runtime, so the 
> changes I made to the "regular" Java lib's fontconfig.properties file 
> didn't affect this bundled one).
> 
> The necessary files to reproduce the problem are attached:
> 
>    Excerpt.xml (a short DocBook chapter demonstrating the problems)
> 
>    fontconfig.properties (edited to support Bengali script and,
>       I think, the use of the Nafees font, except that I can't
>       make the latter work under 3.7.1 or 3.8.1)
> 
>    Vrinda.ttf (the font specified in the fontconfig.properties
>       file for Bengali)
> 
>    Rupali_01-02-2007.ttf (another Bengali font.  The same problems
>       happen with this font as with the Vrinda font.  Renamed from
>       the original 'Nafees_Nastaleeq v1.01.ttf' to ensure that the
>       problem wasn't the rather bizarre filename.)
> 
>    Nafees.ttf (A Nastaliq-style font for Urdu, from crulp.org)
> 
> The Vrinda font is copyright Microsoft, and I believe comes with Ms 
> Office 2004 and newer.  The Rupali font is free, from ekushey.org. The 
> Nafees font is also free.  The fontconfig.properties file also expects 
> the Arial Unicode MS font to be present; I'm assuming you already have 
> that, if you have a copy of Windows XP for test purposes.
> 
> Thanks for looking into this!  We've reverted to 3.7.1 until this gets 
> fixed.

I'm almost sure the problem is solved now. See attached screenshot.

The whole story:

I didn't manage to use the fontconfig.properties you sent me. After 
installing the fonts you sent me (I had Arial Unicode MS) and copying 
your fontconfig.properties to jre/lib/, Java fails to start!

Therefore I started writing my own version of your fontconfig.properties 
(attached to this email).

First change, replaced Arial by Arial Unicode MS.

Java started this time and what I saw was not that bad. The problem that 
struck me was that all 0-width characters were all displayed as little 
rectangles.

I fixed this in our code. Our bug was to assume that 0-width characters 
were bugs in the Java fonts and therefore, we displayed them as little 
rectangles. Now, thanks to your excellent report, we have finally 
understood that these characters are highly useful and that Java renders 
them properly.

I stopped there. Using Arial Unicode MS alone proves that it works. Of 
course, you'll improve the fontconfig.properties by mapping more 
specialized fonts in certain Unicode area. But now, I'm sure that 
everything will work fine.

You'll find the bug fix in XXE v4 (released next week), so give up the 
idea of using XXE v3.8.1.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fontconfig.properties
Url: 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20080718/73a3c4f8/attachment.bat
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Excerp_in_XXE_v4.png
Type: image/png
Size: 74565 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20080718/73a3c4f8/attachment.png
 

Reply via email to