We're having trouble getting XMLmind to correctly display text in the
Bengali script.  If I set the default san-serif font for the entire
document to Vrinda in the Options menu, the text in question displays
correctly.  But Vrinda is a reasonably ugly font for Latin script text
(and it doesn't do IPA, which we also need), so I'd rather use Arial
Unicode MS for English, and Vrinda only for Bengali (Unicode) text.

I tried to do this by first tagging Bengali text as <phrase
lang="ben">...</phrase>, and then adding the following to the relevant
.css:

   phrase[lang="ben"]
   {
       font-family: Vrinda;
   }

However, the result is that text tagged as above shows up as square boxes,
meaning (I presume) that whatever font is being used for that text does
not have Bengali Unicode characters.

I verified that the css is selecting the correct text by adding "color:
blue;" to the above instruction.  Then I get blue boxes :-(.

My guess is that XMLmind (or Java) does not recognize the Vrinda font as a
"font-family".  But it seems like it should, since (1) examples of the use
of css elsewhere seem to include names of individual fonts, not just
families of fonts (e.g.
http://www.w3schools.com/css/pr_font_font-family.asp), and (2) XMLmind is
happy if I choose the Vrinda font in its Options | View dialog.

I've tried variations, such as double-quoting "Vrinda", adding ".ttf",
using lower case, etc., all to no avail.  (BTW, I believe Vrinda is a font
that ships with Windows XP SP2.  It would of course be nice to have a more
generic solution, but I don't know of one, and in any case all our work is
being done on PCs.)

How can I get XMLmind to recognize the Vrinda font in the context of a .css?

   Mike Maxwell
   CASL/ U MD


Reply via email to