Page 1 of 1

How to increase font size of text in topic body

Posted: Fri May 18, 2018 6:21 am
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

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

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

Posted: Fri May 18, 2018 12:14 pm
by dpksaini89
Please help

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

Posted: Fri May 18, 2018 4:59 pm
by Costin
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