> maxwell at umiacs.umd.edu wrote:
>> We're having trouble getting XMLmind to correctly display text in the
>> Bengali script.

Hussein Shafie replied:
> Basically XMLmind XML Editor only supports the serif, sans-serif and
> monospaced *logical* fonts.
> ...
> This is documented. See the "font-family" table row in
> http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/restrict.html

I read that several times, but I confess I was confused--and I still am,
re-reading it now.  I just tried
   phrase[lang="ben"]
   {
       font-family: Vrinda, sans-serif;
   }
which I thought might work, but it doesn't.

> Please note that XMLmind has never claimed to be CSS compliant. Excerpts
> of http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/index.html:
>
> ---
> XMLmind XML Editor (XXE for short) supports a *subset* of CSS2 and a few
> CSS3 features.
>
> The role of the CSS style sheet in XXE is to make the XML document easy
> to read (get rid of the tree view, no visible tags, etc) and to make its
> structure (chapter, section, list, list item, etc) easy to understand.
>
> This is very different from the role of CSS style sheets in Web
> browsers, for which the CSS standard has been designed.
> ---

Understood, but if it handles color and weight, I would have hoped it
would also handle choice of fonts beyond the Big Three.

>> How can I get XMLmind to recognize the Vrinda font in the context of a
>> .css?
>>
>
> You simply cannot do that, in our opinion for very good reasons, see
> below, but you may consider this to be a limitation of XMLmind XML
> Editor if you want.

Yes, I do consider it a limitation, and would like to suggest handling
font-family requests for other fonts as a future improvement.

> The clean solution is to edit the declaration of Java's SansSerif font
> in order to map the Vrinda font to the bengali range of Unicode
> characters (0980?09FF). See
> http://java.sun.com/j2se/1.5.0/docs/guide/intl/fontconfig.html

The problem with using this solution is that I don't have write privileges
to the files in Java's configuration directory, so I have to get our IT
folks to change that.  It's unfortunate that Java doesn't allow settings
in a user's directory to override settings in the 'Program Files'
directory, like XMLmind does...  This is an issue for us today with
Bengali, but it could be an issue for us in the future with a host of
other languages/ scripts, only some of which seem to be listed in the
fontconfig files that ship with Java (and I have no idea whether the fonts
they do list there actually work correctly with some of the "fancier"
scripts).

> I don't understand why this is not already the case. All this should
> work fine out of the box. May be on the Mac or with latest Java[tm]
> runtime, this is the case.

I don't see anything about Bengali in any of the
fontconfig.*.properties.src files; I don't know about the *.bfc files. 
XMLmind on my PC says it's using "Java(TM) 2 Runtime Environment, Standard
Edition 1.5.0_11".

Thanks--as always--for your help!

   Mike Maxwell
   CASL/ U MD


Reply via email to