Table fonts.

Having trouble installing Oxygen PDF Chemistry? Got a bug to report? Post it all here.
bloodnok
Posts: 54
Joined: Mon Jun 27, 2011 10:51 pm

Table fonts.

Post by bloodnok »

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: 833
Joined: Mon Dec 05, 2011 6:04 pm

Re: Table fonts.

Post by Costin »

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: 54
Joined: Mon Jun 27, 2011 10:51 pm

Re: Table fonts.

Post by bloodnok »

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