CSS font-family property / Java fonts
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 48
- Joined: Thu Mar 12, 2009 10:27 pm
CSS font-family property / Java fonts
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.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: CSS font-family property / Java fonts
Post by sorin_ristache »
Hello,
Regards,
Sorin
You are right, it is a regression in version 10.3. We identified the cause and we will let you know when you can download a new build that fixes the problem.solarian wrote: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.
There is a procedure for specifying a font for the PDF output of a TEI transformation. You should make sure that the TEI stylesheet parameter is set correctly and that the path of the font file that will be embedded in the PDF is specified correctly.solarian wrote: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
Regards,
Sorin
-
- Posts: 48
- Joined: Thu Mar 12, 2009 10:27 pm
Re: CSS font-family property / Java fonts
Hi,
Regards,
Ian
Thanks, much appreciated.sorin wrote:You are right, it is a regression in version 10.3. We identified the cause and we will let you know when you can download a new build that fixes the problem.
Thanks, I must have forgotten about this.sorin wrote:There is a procedure for specifying a font for the PDF output of a TEI transformation. You should make sure that the TEI stylesheet parameter is set correctly and that the path of the font file that will be embedded in the PDF is specified correctly.
Regards,
Ian
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: CSS font-family property / Java fonts
Post by sorin_ristache »
We updated the install kits available on the Download page to include a fix for this problem. Please reinstall version 10.3.
Regards,
Sorin
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service