• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Font's for CFDocument PDF not consistent

Community Beginner ,
Aug 22, 2013 Aug 22, 2013

Copy link to clipboard

Copied

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

Views

2.9K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 13, 2013 Dec 13, 2013

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Dec 13, 2013 Dec 13, 2013

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 13, 2013 Dec 13, 2013

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 13, 2013 Dec 13, 2013

Copy link to clipboard

Copied

The only difference that I note is that in the case where the font is working properly, we are running CF10 Update 10 and the problem server runs CF10 Update 12.  We may downgrade this to Update 10 to see if this makes a difference.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 13, 2013 Dec 13, 2013

Copy link to clipboard

Copied

We are running CF901 on both of the servers.

steve

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 17, 2013 Dec 17, 2013

Copy link to clipboard

Copied

Since you are running the same version of CF on both servers, I was kind of doubtful about the downgrading option.  In any case, we did and of course, no change.  So, back to the drawing board.  Never actually left it.

Franz

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 23, 2014 Jan 23, 2014

Copy link to clipboard

Copied

Ok, I have come up with a work-around.  Instead of using pt for the font-size, either use em, px or percent.  This will require a bit (tons) of work for us, but it works the same way on both servers and results in consistent font sizes across the servers.  Therefore, we don't have to maintain two different sets of code.

To facilitate: When I want to use em, I divide the existing pt by 12 and that gives me the corresponding em.  For px, I multiply the existing pt by 1.33.

Hope that helps.  Franz

Also, take a look at this: http://kyleschaeffer.com/development/css-font-size-em-vs-px-vs-pt-vs/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 23, 2014 Jan 23, 2014

Copy link to clipboard

Copied

Thanks.  We will give this a try.

Steve

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 19, 2015 May 19, 2015

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation