Skip to main content
Inspiring
November 20, 2009
Question

cfdocument doesn't work with my font size

  • November 20, 2009
  • 1 reply
  • 595 views

Hi All,

My font size doesn't work inside my cfdocument using css

Here is my code:

<cfdocument format="flashpaper" pagetype="letter" fontembed="yes" margintop="0.3" marginbottom="1.25" marginleft="1" marginright="1.25" unit="in">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<head>
    <style type="text/css" media="print">
        @import url(assets/css/preview.css);
    </style>
</head>

In My css file I have this:

body {
    font-family:"times new roman";
    font-size: 18px;
    line-height: 20px;
}

The font is a TTF and it shows in my cfadmin as:

Font Family Font Face Postscript Name Font Type Useable In Path
times new romanTimes New RomanTimesNewRomanPSMTTRUETYPEPDF/FlashPaperc:\windows\fonts\times.ttf

I try using postscript name and the same issue. If I increase the font size it actually reduce the size on the screen.

I'm using windows 2008 with CF8 with the latest hotfix 8,0,1,195765

Any ideas?

Thanks in advance.

Johnny

This topic has been closed for replies.

1 reply

jfb00Author
Inspiring
November 20, 2009

Don't know why didn't show my code.

Here is the code:

<cfdocument format="flashpaper" pagetype="letter" fontembed="yes" margintop="0.3" marginbottom="1.25" marginleft="1" marginright="1.25" unit="in">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
<head>
    <style type="text/css" media="screen">
        @import url(assets/css/preview.css);
    </style>
</head>

jfb00Author
Inspiring
November 20, 2009

I found this on the web

http://rip747.wordpress.com/2007/09/10/cfdocument-it-works-if-you-know-how/

Now looks like it works but If I copy a text from any internet source and paste into my text field the font reduce the size.

I think are the ENTER (chr(13)) that is not working and flash paper is trying to shrink all.

Any ideas about this?

Thanks!

Johnny