Andy Black wrote: > On 9/5/2008 11:21 AM, Hussein Shafie wrote: >> Starting from XXE v3.8 (support of MathML), this >> restriction: >> >> --- >> font-family is expected to contain serif, sans-serif or monospace. >> Example: "|font-family: Helvetica, Arial, sans-serif;|". >> --- >> >> has been removed. I've tested that with font-family:"Charis SIL"; (and >> also with font-family:"Comic Sans MS"; to have a more striking effect). >> >> The bug is that we forgot to document this enhancement. This will be >> done in next release. >> > > Great! Thanks, Hussein. Using version 3.8.0, I was able to get a > single font to work just fine. For example: > font-family: 'Charis SIL'; > Note that the quotes were essential to getting it to work.
Yes. > If I tried to make this use several fonts (in the case the first font is > missing, say), then I was not able to figure out the syntax to make it > still work. For example, none of the following worked: > font-family: 'Charis SIL', 'Arial Unicode MS', sans-serif; > font-family: "'Charis SIL', 'Arial Unicode MS', sans-serif"; > font-family: "'Charis SIL', 'Arial Unicode MS', 'sans-serif'"; > font-family: "'Charis SIL','Arial Unicode MS',sans-serif"; /* no > space after comma */ > font-family: 'Charis SIL','Arial Unicode MS',sans-serif; /* no > space after comma */ > > What am I doing wrong? > Nothing. In XXE v3.8, "font-family: 'Charis SIL';" works fine but "font-family: 'Charis SIL', 'Arial Unicode MS', sans-serif;" still picks in priority first found logical font (in the above example, it picks sans-serif). We noticed that problem and fixed it in XXE v4.1 (to be released). Therefore, as of XXE v4.1, "font-family: 'Charis SIL', 'Arial Unicode MS', sans-serif;" should work as expected.

