Skip to main content
Known Participant
August 22, 2013
Question

Font's for CFDocument PDF not consistent

  • August 22, 2013
  • 2 replies
  • 3332 views

I have identical CFM file's on 2 different servers which generate a PDF.

I use a style tag like this:

<style type="text/css">

td    {

    font-family : Arial;

    color : Black;

    font-style : normal;

    font-weight : normal;

    font-size : 10pt;

    text-decoration : none;

    text-align: center;

    }

th    {

    font-family : Arial;

    color : Black;

    font-style : normal;

    font-weight : normal;

    font-size : 10pt;

    text-decoration : none;

    text-align: center;

    }

td.left    {

    font-family : Arial;

    color : Black;

    font-style : normal;

    font-weight : normal;

    font-size : 10pt;

    text-decoration : none;

    text-align: left;

    }

th.right    {

    font-family : Arial;

    color : Black;

    font-style : normal;

    font-weight : normal;

    font-size : 10pt;

    text-decoration : none;

    text-align: left;

    }

</style>

But this displays differently on separate servers.  Why would the font's look different?

<table  width="100%" cellpadding="0" cellspacing="0">

    <tr>

        <th class="right">RESERVATION : </th>

        <td class="left"> </td>

    </tr>

</table>

Thanks,

Steve

    This topic has been closed for replies.

    2 replies

    DamienJByrne
    Participant
    May 19, 2015

    We've been having the same problem here.  I've noticed that the error happens when using pt or mm for sizing.  This goes for other screen measures not just for fonts.  If we create a 100mm wide coloured div, it prints as 100mm in CF9 but as about 123mm in CF11.  Generally using px and em seem to render the same between the two.

    As pt and mm are both around 20%-30% bigger in the PDF than should be.

    Participating Frequently
    December 13, 2013

    I have the same problem.  CF 10.  Does anybody have an answer fo this yet?

    Carl Von Stetten
    Legend
    December 13, 2013

    Have you checked the datestamps/file sizes on the Arial font files on both servers to see if they match?  Could one of the fonts be corrupted?

    -Carl V.

    Known Participant
    December 13, 2013

    Thank for the reply.  Yes, the font files are identical.  That's what makes this so hard to troubleshoot...  Same CF code and Same font files.

    steve