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
Copy link to clipboard
Copied
I have the same problem. CF 10. Does anybody have an answer fo this yet?
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.
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
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.
Copy link to clipboard
Copied
We are running CF901 on both of the servers.
steve
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
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/
Copy link to clipboard
Copied
Thanks. We will give this a try.
Steve
Copy link to clipboard
Copied
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.