Table fonts.

bloodnok
Posts: 36
Joined: Mon Jun 27, 2011 10:51 pm

Table fonts.

Post by bloodnok » Thu Jan 10, 2019 4:00 am

My default fonts are 12pt. When I build the PDF, the output fonts in the table are about half the size.

I tried the following in my CSS:

Code: Select all

table tbody tr td p{
font-size: 12pt !important;
}
It didn't work. The fonts are still about half size.

How do I get tables to use the same font size as the rest of the doc?

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

Re: Table fonts.

Post by Costin » Fri Jan 11, 2019 11:53 am

Hello,

You should double check that there really are any paragraph elements inside the table cells.
One thing you could try would be to match even the cell, by modifying the selector, like:

Code: Select all

table tbody tr td p{
font-size: 12pt !important;
}
If this does not solve the issue, as we can not tell what is wrong without knowing the structure that your source DITA file have, you should send us a minimal sample for which the issue is reproducible (on support@oxygenxml.com).

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support

bloodnok
Posts: 36
Joined: Mon Jun 27, 2011 10:51 pm

Re: Table fonts.

Post by bloodnok » Thu Feb 14, 2019 8:14 pm

In case anyone else runs into this, Costin provided a solution that eliminated the problem for me. Added the following to my CSS:

Code: Select all

colspec, col, spanspec{
font-size:1em;
}

Post Reply