Header Fonts and String Function
Post here questions and problems related to editing and publishing DITA content.
Header Fonts and String Function
Hi,
I'm trying to set up the headers for PDF output. I'm using <oXygen/> XML Author 21.1, build 2019090904. When I try to specify font-family or font-size for the header, these properties are ignored. Only the font-weight is honored.
@page :left {
@top-left {
content: "Some Sample Text";
font-family: roman, 'times new roman', times, serif;
font-size: 6pt;
font-weight: normal;
}
}
@page :right {
@top-right {
content: "Some Sample Text";
font-family: arial, helvetica, sans-serif;
font-size: 26pt;
font-weight: bold;
}
}
Am I doing something wrong? If this is a bug, is there a workaround?
Thanks!
I'm trying to set up the headers for PDF output. I'm using <oXygen/> XML Author 21.1, build 2019090904. When I try to specify font-family or font-size for the header, these properties are ignored. Only the font-weight is honored.
@page :left {
@top-left {
content: "Some Sample Text";
font-family: roman, 'times new roman', times, serif;
font-size: 6pt;
font-weight: normal;
}
}
@page :right {
@top-right {
content: "Some Sample Text";
font-family: arial, helvetica, sans-serif;
font-size: 26pt;
font-weight: bold;
}
}
Am I doing something wrong? If this is a bug, is there a workaround?
Thanks!
Re: Header Fonts and String Function
Are you using a publishing template (selected in the first page of the DITA transformation scenrio dialog)? Probably the CSS rules from it are more specific.
You can use more specific selectors like:
Or you can use the !important specifier:
Regards,
Dan
You can use more specific selectors like:
Code: Select all
@page :left, chapter:left, chapter:first:left { .. }
Code: Select all
font-family: roman, 'times new roman', times, serif !important;
Dan
Return to “DITA (Editing and Publishing DITA Content)”
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