How to increase font size of text in topic body

dpksaini89
Posts: 59
Joined: Thu Feb 08, 2018 2:44 pm

How to increase font size of text in topic body

Post by dpksaini89 » Fri May 18, 2018 6:21 am

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

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;
Reference Image
Image

dpksaini89
Posts: 59
Joined: Thu Feb 08, 2018 2:44 pm

Re: How to increase font size of text in topic body

Post by dpksaini89 » Fri May 18, 2018 12:14 pm

Please help

Costin
Posts: 590
Joined: Mon Dec 05, 2011 6:04 pm

Re: How to increase font size of text in topic body

Post by Costin » Fri May 18, 2018 4:59 pm

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:

Code: Select all

:root {
font-family: arial;
font-size: 24pt;
color: #FF4000;
font-style: normal;
}
This is also specified in the Fonts section from our User-Guide.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support

Post Reply