How to increase font size of text in topic body
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 66
- Joined: Thu Feb 08, 2018 2:44 pm
How to increase font size of text in topic body
Post by dpksaini89 »
I wish to increase font size of text in topic body which may include text in normal para, ol, ul, note, tables etc as it seem to be very small and hard to read when printed in pdf.
Can it be handled using css?
I have tried increasing text size in css, but it is not reflecting in pdf generated.
Please help
Reference Image

Can it be handled using css?
I have tried increasing text size in css, but it is not reflecting in pdf generated.
Please help
Code: Select all
@page {
size: A4 portrait;
margin-left: 0.8in;
margin-right: 0.8in;
padding-top: 0.2in;
padding-bottom: 0.2in;
font-family: arial;
[color=#FF4000]font-size: 24pt;[/color]
font-style: normal;

-
- Posts: 66
- Joined: Thu Feb 08, 2018 2:44 pm
-
- Posts: 846
- Joined: Mon Dec 05, 2011 6:04 pm
Re: How to increase font size of text in topic body
Hi ,
Please note that the @page CSS at-rule can be used to modify specific rules for printing a document, but those rules are specific to pages - like margins, page breaks of the document and specialized pages (like TOC, frontmatter, etc).
However, you can't change all CSS properties with @page, so other modifications won't be considered.
For other elements, you should use rules for selectors specific to the elements you want to change.
For example, if you need to change font settings for the entire documentation content, in your CSS you could match the document root, like:
This is also specified in the Fonts section from our User-Guide.
Regards,
Costin
Please note that the @page CSS at-rule can be used to modify specific rules for printing a document, but those rules are specific to pages - like margins, page breaks of the document and specialized pages (like TOC, frontmatter, etc).
However, you can't change all CSS properties with @page, so other modifications won't be considered.
For other elements, you should use rules for selectors specific to the elements you want to change.
For example, if you need to change font settings for the entire documentation content, in your CSS you could match the document root, like:
Code: Select all
:root {
font-family: arial;
font-size: 24pt;
color: #FF4000;
font-style: normal;
}
Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
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