CSS font-family property / Java fonts
Posted: Wed Jul 01, 2009 2:40 pm
I've come upon an issue that seems to have been introduced in 10.3 to do with CSS font properties. I have a CSS declaration as follows:
This worked fine in Editor view in 10.2, displaying Hebrew characters in Times New Roman (which has subsets for Hebrew, Arabic, etc.). However, in 10.3 it will only display those little boxes to show it can't display the right glyphs. It will display Hebrew when I choose "Arial" or "David" fonts instead, and eventually I figured out that it's probably interpreting "Times New Roman" as "Times", which doesn't have a Hebrew subset. This is because I realised that other declarations like:
were also being misinterpreted; in this case, I was getting Garamond instead of the Garamond Premier Pro in Editor view. It is worth noting that I am able to get other fonts with spaces in the name to work fine, for instance "Adobe Caslon Pro" does actually display "Adobe Caslon Pro" and not something else.
There is another issue to do with transforming TEI to PDF, in that I can't seem to get it to use fonts other than the standard Java fonts (i.e., serif, sans-serif, etc.) by changing the font names in tei-param.xsd (e.g., to Times New Roman, which is specifically defined in the JRE and so should definitely be available). This was also working fine in 10.2, and it doesn't seem to matter whether I use the bundled JRE or my system JRE (1.7.0) which I was using with 10.2.
Code: Select all
*[lang="he"] {
font-family: "Times New Roman";
}
Code: Select all
text {
font-family: "Garamond Premr Pro";
}
There is another issue to do with transforming TEI to PDF, in that I can't seem to get it to use fonts other than the standard Java fonts (i.e., serif, sans-serif, etc.) by changing the font names in tei-param.xsd (e.g., to Times New Roman, which is specifically defined in the JRE and so should definitely be available). This was also working fine in 10.2, and it doesn't seem to matter whether I use the bundled JRE or my system JRE (1.7.0) which I was using with 10.2.