Skip to main content
Inspiring
February 24, 2009
Question

cfdocument, fonts not displaying after upgrade to cf8

  • February 24, 2009
  • 2 replies
  • 1377 views
I am using cfdocument to create a PDF. The code used to run successfully in CF7 and since the switch to cf8 my font (ShelleyAllegro BT) is showing up as Times New Roman. I have installed ShelleyAllegro BT into the regular windows fonts directory and no luck. If I output the HTML to the screen it displays properly, but once I save it as a pdf using cfdocument it goes back to Times New Roman.

What do I do?
This topic has been closed for replies.

2 replies

Inspiring
February 28, 2009
On Tue, 24 Feb 2009 18:51:04 +0000 (UTC), mr. modus wrote:

> I am using cfdocument to create a PDF. The code used to run successfully in CF7
> and since the switch to cf8 my font (ShelleyAllegro BT) is showing up as Times
> New Roman.
>...
> What do I do?

I'm not sure what to suggest. I can confirm it's not some weird
incompatibility with CF8's <cfdocument> implementation and the font,
because it renders OK for me.

Can you post some code the demonstrates what you're seeing?

--
Adam
mr. modusAuthor
Inspiring
February 28, 2009
Here's the test code. The text display as times new roman. When I check the properties/fonts tab of the pdf it only shows Times New Roman as being embedded in the document.

Here's the code:
Inspiring
February 25, 2009
did you restart the cf server/service after you installed the font?
are you using fontembed attribute in <cfdocument> tag?


Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
mr. modusAuthor
Inspiring
February 28, 2009
Yes, CF has been restarted numerous times. The font shows up properly in font management in the cfadmin. I can display the font in HTML just not in cfdocument. I have fontembed in the cfdoc tag set to true. It's a ttf.