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

cfdocument, fonts not displaying after upgrade to cf8

Explorer ,
Feb 24, 2009 Feb 24, 2009

Copy link to clipboard

Copied

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?
TOPICS
Advanced techniques

Views

1.2K

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
LEGEND ,
Feb 24, 2009 Feb 24, 2009

Copy link to clipboard

Copied

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/

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
Explorer ,
Feb 28, 2009 Feb 28, 2009

Copy link to clipboard

Copied

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.

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
Explorer ,
Feb 28, 2009 Feb 28, 2009

Copy link to clipboard

Copied

And all hotfixes have been installed.

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
LEGEND ,
Feb 28, 2009 Feb 28, 2009

Copy link to clipboard

Copied

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

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
Explorer ,
Feb 28, 2009 Feb 28, 2009

Copy link to clipboard

Copied

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:

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
LEGEND ,
Feb 28, 2009 Feb 28, 2009

Copy link to clipboard

Copied

> <span style="font-family:Bickham Script Pro Semibold; font-size:42px;">

That's not the same font you were talking about before. I can't test this
one because one has to pay for this font.

Running your code using ShelleyAllegro BT instead works fine for me though
(on both 7.0.2 and 8.0.1).

--
Adam

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
Explorer ,
Feb 28, 2009 Feb 28, 2009

Copy link to clipboard

Copied

No, it's not the same font because I was trying an otf this time instead as my hosting provider said it might be a problem with ttf and suggested I try an otf. I'm getting the same failed result either way. My hosting provider (crystaltech) has assurred me that they have the latest version of cf8 with the latest hotfixes working. I'm not sure what to do.

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
LEGEND ,
Feb 28, 2009 Feb 28, 2009

Copy link to clipboard

Copied

LATEST
> I'm not sure what to do.

Me neither I'm afraid. I only started using <cfdocument> for the first
time every on Thurs just passed, so I'm hardly the expert (I'm amidst an
exercise of getting up to speed with all the tags I never use).

Just as an experiment, can you try changing the <cfdocument> format to
FlashPaper, and see if it's the same?

--
Adam

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