Re: Quicky question re: cfdocument and fonts
To Peter Boughton, Christine Davis, Chris Peterson, and Sandra Clark -- Thanks again for the help you provided me regarding my question about how to switch fonts within a cfdocument. In the end, a combination of inline style specifications (not font tags) and upgrading my server from 7.0 to 7.0.2 completely fixed the problem. My app is now producing PDFs in the desired font. Thank you! -- Larry Afrin Medical University of South Carolina Sandra Clark wrote: Make sure your call to a stylesheet is within the cfdocument tags. Basically your entire layout. I'm not sure how Acrobat handles font or other obsolete tags, but it does handle most of CSS properly. Sandra Clark == http://www.shayna.com Training in Cascading Style Sheets and Accessibility -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 04, 2006 2:07 PM To: CF-Talk Subject: Re: Quicky question re: cfdocument and fonts Peter -- Thanks for the idea, but I had also tried (prior to my original posting) the inline style stuff such as you suggested -- and got exactly the same result. Any other ideas? There has to be some way to use cfdocument to generate a PDF with a font other than Times Roman... -- LBA Quoting Peter Boughton [EMAIL PROTECTED]: What about if you try using span style=font: Whatever;../span ? Howdy -- I'm making my first use of cfdocument (no jokes about being behind the times, please -- I've been busy with other things), and it seems that no matter what I specify in the font tag inside the cfdocument, the resulting PDF displays the content in the same Times Roman font in whatever the default font size is (looks like about 12). I tried lots of the different font faces listed on my CF Administrator's Font Management page, but I keep getting the same result. Have also tried both yes and no fontembed settings, makes no difference. For that matter, I can't even get it to pay attention to font size=whatever tags. The size of the type in the PDF is properly affected by tags like h1, but font doesn't seem to be having any effect at all. I searched around a bit before writing this post, and I found a little bit of material alluding to there being some font problems with cfdocument in 7.0, but it wasn't clear to me that Updater 1 really fixed it, as there seem to be some more recent hotfixes for the same problem. I really couldn't find a good summary of the whole issue. Bottom line: I'm running MX 7 (version 7,0,0,91690 -- again, no jokes about behind the times; I believe in not fixing it if it ain't broke, but now it's broke) on Linux. Can anybody tell me what I have to do to get my cfdocument-produced PDFs to pay attention to my font tags? -- Larry Afrin Medical University of South Carolina [EMAIL PROTECTED] ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255945 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Quicky question re: cfdocument and fonts
What about if you try using span style=font: Whatever;../span ? Howdy -- I'm making my first use of cfdocument (no jokes about being behind the times, please -- I've been busy with other things), and it seems that no matter what I specify in the font tag inside the cfdocument, the resulting PDF displays the content in the same Times Roman font in whatever the default font size is (looks like about 12). I tried lots of the different font faces listed on my CF Administrator's Font Management page, but I keep getting the same result. Have also tried both yes and no fontembed settings, makes no difference. For that matter, I can't even get it to pay attention to font size=whatever tags. The size of the type in the PDF is properly affected by tags like h1, but font doesn't seem to be having any effect at all. I searched around a bit before writing this post, and I found a little bit of material alluding to there being some font problems with cfdocument in 7.0, but it wasn't clear to me that Updater 1 really fixed it, as there seem to be some more recent hotfixes for the same problem. I really couldn't find a good summary of the whole issue. Bottom line: I'm running MX 7 (version 7,0,0,91690 -- again, no jokes about behind the times; I believe in not fixing it if it ain't broke, but now it's broke) on Linux. Can anybody tell me what I have to do to get my cfdocument-produced PDFs to pay attention to my font tags? -- Larry Afrin Medical University of South Carolina [EMAIL PROTECTED] ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255395 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Quicky question re: cfdocument and fonts
Upgrade your server, first with 7.0.1 then 7.0.2 you'll still have some interesting issues but it will be better than it is on 7.0 (at least that's been my experience with the tag). We allow our users to create the HTML using FCKEditor and we still have a number of issues (especially with underlines and bolding) relating to the translation from HTML to PDF. Thanks! Christine Davis ColdFusion Lead Nations Technical Services Prairie Village, KS 913-748-8044 ext 4703 [EMAIL PROTECTED] -Original Message- From: Lawrence B. Afrin, M.D. [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 10:56 PM To: CF-Talk Subject: Quicky question re: cfdocument and fonts Howdy -- I'm making my first use of cfdocument (no jokes about being behind the times, please -- I've been busy with other things), and it seems that no matter what I specify in the font tag inside the cfdocument, the resulting PDF displays the content in the same Times Roman font in whatever the default font size is (looks like about 12). I tried lots of the different font faces listed on my CF Administrator's Font Management page, but I keep getting the same result. Have also tried both yes and no fontembed settings, makes no difference. For that matter, I can't even get it to pay attention to font size=whatever tags. The size of the type in the PDF is properly affected by tags like h1, but font doesn't seem to be having any effect at all. I searched around a bit before writing this post, and I found a little bit of material alluding to there being some font problems with cfdocument in 7.0, but it wasn't clear to me that Updater 1 really fixed it, as there seem to be some more recent hotfixes for the same problem. I really couldn't find a good summary of the whole issue. Bottom line: I'm running MX 7 (version 7,0,0,91690 -- again, no jokes about behind the times; I believe in not fixing it if it ain't broke, but now it's broke) on Linux. Can anybody tell me what I have to do to get my cfdocument-produced PDFs to pay attention to my font tags? -- Larry Afrin Medical University of South Carolina [EMAIL PROTECTED] ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255478 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Quicky question re: cfdocument and fonts
Peter -- Thanks for the idea, but I had also tried (prior to my original posting) the inline style stuff such as you suggested -- and got exactly the same result. Any other ideas? There has to be some way to use cfdocument to generate a PDF with a font other than Times Roman... -- LBA Quoting Peter Boughton [EMAIL PROTECTED]: What about if you try using span style=font: Whatever;../span ? Howdy -- I'm making my first use of cfdocument (no jokes about being behind the times, please -- I've been busy with other things), and it seems that no matter what I specify in the font tag inside the cfdocument, the resulting PDF displays the content in the same Times Roman font in whatever the default font size is (looks like about 12). I tried lots of the different font faces listed on my CF Administrator's Font Management page, but I keep getting the same result. Have also tried both yes and no fontembed settings, makes no difference. For that matter, I can't even get it to pay attention to font size=whatever tags. The size of the type in the PDF is properly affected by tags like h1, but font doesn't seem to be having any effect at all. I searched around a bit before writing this post, and I found a little bit of material alluding to there being some font problems with cfdocument in 7.0, but it wasn't clear to me that Updater 1 really fixed it, as there seem to be some more recent hotfixes for the same problem. I really couldn't find a good summary of the whole issue. Bottom line: I'm running MX 7 (version 7,0,0,91690 -- again, no jokes about behind the times; I believe in not fixing it if it ain't broke, but now it's broke) on Linux. Can anybody tell me what I have to do to get my cfdocument-produced PDFs to pay attention to my font tags? -- Larry Afrin Medical University of South Carolina [EMAIL PROTECTED] ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255487 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Quicky question re: cfdocument and fonts
Christine -- Thank you! I'll give it a whirl... -- LBA Quoting Christine Davis [EMAIL PROTECTED]: Upgrade your server, first with 7.0.1 then 7.0.2 you'll still have some interesting issues but it will be better than it is on 7.0 (at least that's been my experience with the tag). We allow our users to create the HTML using FCKEditor and we still have a number of issues (especially with underlines and bolding) relating to the translation from HTML to PDF. Thanks! Christine Davis ColdFusion Lead Nations Technical Services Prairie Village, KS 913-748-8044 ext 4703 [EMAIL PROTECTED] -Original Message- From: Lawrence B. Afrin, M.D. [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 10:56 PM To: CF-Talk Subject: Quicky question re: cfdocument and fonts Howdy -- I'm making my first use of cfdocument (no jokes about being behind the times, please -- I've been busy with other things), and it seems that no matter what I specify in the font tag inside the cfdocument, the resulting PDF displays the content in the same Times Roman font in whatever the default font size is (looks like about 12). I tried lots of the different font faces listed on my CF Administrator's Font Management page, but I keep getting the same result. Have also tried both yes and no fontembed settings, makes no difference. For that matter, I can't even get it to pay attention to font size=whatever tags. The size of the type in the PDF is properly affected by tags like h1, but font doesn't seem to be having any effect at all. I searched around a bit before writing this post, and I found a little bit of material alluding to there being some font problems with cfdocument in 7.0, but it wasn't clear to me that Updater 1 really fixed it, as there seem to be some more recent hotfixes for the same problem. I really couldn't find a good summary of the whole issue. Bottom line: I'm running MX 7 (version 7,0,0,91690 -- again, no jokes about behind the times; I believe in not fixing it if it ain't broke, but now it's broke) on Linux. Can anybody tell me what I have to do to get my cfdocument-produced PDFs to pay attention to my font tags? -- Larry Afrin Medical University of South Carolina [EMAIL PROTECTED] ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255500 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Quicky question re: cfdocument and fonts
Make sure your call to a stylesheet is within the cfdocument tags. Basically your entire layout. I'm not sure how Acrobat handles font or other obsolete tags, but it does handle most of CSS properly. Sandra Clark == http://www.shayna.com Training in Cascading Style Sheets and Accessibility -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 04, 2006 2:07 PM To: CF-Talk Subject: Re: Quicky question re: cfdocument and fonts Peter -- Thanks for the idea, but I had also tried (prior to my original posting) the inline style stuff such as you suggested -- and got exactly the same result. Any other ideas? There has to be some way to use cfdocument to generate a PDF with a font other than Times Roman... -- LBA Quoting Peter Boughton [EMAIL PROTECTED]: What about if you try using span style=font: Whatever;../span ? Howdy -- I'm making my first use of cfdocument (no jokes about being behind the times, please -- I've been busy with other things), and it seems that no matter what I specify in the font tag inside the cfdocument, the resulting PDF displays the content in the same Times Roman font in whatever the default font size is (looks like about 12). I tried lots of the different font faces listed on my CF Administrator's Font Management page, but I keep getting the same result. Have also tried both yes and no fontembed settings, makes no difference. For that matter, I can't even get it to pay attention to font size=whatever tags. The size of the type in the PDF is properly affected by tags like h1, but font doesn't seem to be having any effect at all. I searched around a bit before writing this post, and I found a little bit of material alluding to there being some font problems with cfdocument in 7.0, but it wasn't clear to me that Updater 1 really fixed it, as there seem to be some more recent hotfixes for the same problem. I really couldn't find a good summary of the whole issue. Bottom line: I'm running MX 7 (version 7,0,0,91690 -- again, no jokes about behind the times; I believe in not fixing it if it ain't broke, but now it's broke) on Linux. Can anybody tell me what I have to do to get my cfdocument-produced PDFs to pay attention to my font tags? -- Larry Afrin Medical University of South Carolina [EMAIL PROTECTED] ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255499 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Quicky question re: cfdocument and fonts
Be sure you have your styles in-line inside your cfdocument /cfdocument tags, this has solved many of my issues in the past. =) Chris ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255498 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Quicky question re: cfdocument and fonts
Sandra -- I greatly appreciate the tip, but I checked and indeed had already tried as you suggested, to no avail. I will ask my server administrator to try Christine Davis' tip (apply Updaters 1 and 2) and see what happens... -- LBA Quoting Sandra Clark [EMAIL PROTECTED]: Make sure your call to a stylesheet is within the cfdocument tags. Basically your entire layout. I'm not sure how Acrobat handles font or other obsolete tags, but it does handle most of CSS properly. Sandra Clark == http://www.shayna.com Training in Cascading Style Sheets and Accessibility -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 04, 2006 2:07 PM To: CF-Talk Subject: Re: Quicky question re: cfdocument and fonts Peter -- Thanks for the idea, but I had also tried (prior to my original posting) the inline style stuff such as you suggested -- and got exactly the same result. Any other ideas? There has to be some way to use cfdocument to generate a PDF with a font other than Times Roman... -- LBA Quoting Peter Boughton [EMAIL PROTECTED]: What about if you try using span style=font: Whatever;../span ? Howdy -- I'm making my first use of cfdocument (no jokes about being behind the times, please -- I've been busy with other things), and it seems that no matter what I specify in the font tag inside the cfdocument, the resulting PDF displays the content in the same Times Roman font in whatever the default font size is (looks like about 12). I tried lots of the different font faces listed on my CF Administrator's Font Management page, but I keep getting the same result. Have also tried both yes and no fontembed settings, makes no difference. For that matter, I can't even get it to pay attention to font size=whatever tags. The size of the type in the PDF is properly affected by tags like h1, but font doesn't seem to be having any effect at all. I searched around a bit before writing this post, and I found a little bit of material alluding to there being some font problems with cfdocument in 7.0, but it wasn't clear to me that Updater 1 really fixed it, as there seem to be some more recent hotfixes for the same problem. I really couldn't find a good summary of the whole issue. Bottom line: I'm running MX 7 (version 7,0,0,91690 -- again, no jokes about behind the times; I believe in not fixing it if it ain't broke, but now it's broke) on Linux. Can anybody tell me what I have to do to get my cfdocument-produced PDFs to pay attention to my font tags? -- Larry Afrin Medical University of South Carolina [EMAIL PROTECTED] ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255507 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Follow-up re: Quicky question re: cfdocument and fonts
Chris, Christine, Sandra, and everyone else -- A bit of a mea culpa here, with some progress but some persistent problems... Thanks again for your previous efforts to help me with my problem making font adjustments in PDFs produced with cfdocument in CFMX 7.0 (Linux). I discovered a typo in my inline style font directive that was causing part of the problem. The font tag still doesn't work, but inline style directives are beginning to work. I now have partial control over the font in the PDF, by which I mean I can control font sizes using the font-size directive and, using the font directive, I can switch (to some degree) among the fonts of font type ADOBE-BUILT-IN as listed on the CFMX server's Font Management page. By some degree I mean I seem to be able to access only the base fonts. For example, font:Times-Roman works, but font:Times-Italic doesn't. Furthermore, whenever I refer to any of the fonts that are listed in the Font Management page as being of font type TRUETYPE, I merely get the default Times Roman. Along the lines of if it ain't broke, don't fix it, I'm now wondering if I really do have to update my server as you, Christine, suggested. Do y'all have any other suggestions for accessing the TrueType fonts (e.g., Arioso, Chevara, Conga, Helmet) listed on my CFMX server's Font Management page? Again, I've tried this with both fontembed settings (yes and no), to no avail; I just keep getting the default Times Roman whenever I reference a TrueType font. I've also verified my font directives are inside the cfdocument structure. -- LBA Sandra Clark wrote: Make sure your call to a stylesheet is within the cfdocument tags. Basically your entire layout. I'm not sure how Acrobat handles font or other obsolete tags, but it does handle most of CSS properly. Sandra Clark == http://www.shayna.com Training in Cascading Style Sheets and Accessibility -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 04, 2006 2:07 PM To: CF-Talk Subject: Re: Quicky question re: cfdocument and fonts Peter -- Thanks for the idea, but I had also tried (prior to my original posting) the inline style stuff such as you suggested -- and got exactly the same result. Any other ideas? There has to be some way to use cfdocument to generate a PDF with a font other than Times Roman... -- LBA Quoting Peter Boughton [EMAIL PROTECTED]: What about if you try using span style=font: Whatever;../span ? Howdy -- I'm making my first use of cfdocument (no jokes about being behind the times, please -- I've been busy with other things), and it seems that no matter what I specify in the font tag inside the cfdocument, the resulting PDF displays the content in the same Times Roman font in whatever the default font size is (looks like about 12). I tried lots of the different font faces listed on my CF Administrator's Font Management page, but I keep getting the same result. Have also tried both yes and no fontembed settings, makes no difference. For that matter, I can't even get it to pay attention to font size=whatever tags. The size of the type in the PDF is properly affected by tags like h1, but font doesn't seem to be having any effect at all. I searched around a bit before writing this post, and I found a little bit of material alluding to there being some font problems with cfdocument in 7.0, but it wasn't clear to me that Updater 1 really fixed it, as there seem to be some more recent hotfixes for the same problem. I really couldn't find a good summary of the whole issue. Bottom line: I'm running MX 7 (version 7,0,0,91690 -- again, no jokes about behind the times; I believe in not fixing it if it ain't broke, but now it's broke) on Linux. Can anybody tell me what I have to do to get my cfdocument-produced PDFs to pay attention to my font tags? -- Larry Afrin Medical University of South Carolina [EMAIL PROTECTED] ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255542 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Follow-up re: Quicky question re: cfdocument and fonts
Lawrence, 7.0.1 and 7.0.2 fix a number of issues related to CFDocument. 1. ID 60865 PDF files created with the cfdocument tag may not render content with the specified fonts. To avoid this issue, install the TTF sfile for the font you want to use. In addition, on OS X, if the content contains any Unicode characters, the content may not render properly. To avoid this issue on OS X, install Arial Unicode MS or any other Unicode font in .ttf form. 2. ID 60212 cfdocument text clipping at bottom/top of page also fixes 59991 3. ID 61378 Threading Issues And a couple of others I didn't care so much about... It also adds some additional functionality to the CFDocument tag. Our issues with font size and font face decreased significantly after we installed the upgrade. We had examples of the same HTML code showing the correct font face on our development (7.0.2) server and our production (7.0.0) server. I cannot tell you what to do with your server, but my experience has been that upgrading greatly helped with our CFDocument problems. It's not perfect, and quirks still get through. Even with the upgrades applied styles don't always work as expected.. but it is closer now. Thanks! Christine Davis ColdFusion Lead Nations Technical Services Prairie Village, KS 913-748-8044 ext 4703 [EMAIL PROTECTED] -Original Message- From: Lawrence B. Afrin, M.D. [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 04, 2006 5:16 PM To: CF-Talk Subject: Follow-up re: Quicky question re: cfdocument and fonts Chris, Christine, Sandra, and everyone else -- A bit of a mea culpa here, with some progress but some persistent problems... Thanks again for your previous efforts to help me with my problem making font adjustments in PDFs produced with cfdocument in CFMX 7.0 (Linux). I discovered a typo in my inline style font directive that was causing part of the problem. The font tag still doesn't work, but inline style directives are beginning to work. I now have partial control over the font in the PDF, by which I mean I can control font sizes using the font-size directive and, using the font directive, I can switch (to some degree) among the fonts of font type ADOBE-BUILT-IN as listed on the CFMX server's Font Management page. By some degree I mean I seem to be able to access only the base fonts. For example, font:Times-Roman works, but font:Times-Italic doesn't. Furthermore, whenever I refer to any of the fonts that are listed in the Font Management page as being of font type TRUETYPE, I merely get the default Times Roman. Along the lines of if it ain't broke, don't fix it, I'm now wondering if I really do have to update my server as you, Christine, suggested. Do y'all have any other suggestions for accessing the TrueType fonts (e.g., Arioso, Chevara, Conga, Helmet) listed on my CFMX server's Font Management page? Again, I've tried this with both fontembed settings (yes and no), to no avail; I just keep getting the default Times Roman whenever I reference a TrueType font. I've also verified my font directives are inside the cfdocument structure. -- LBA Sandra Clark wrote: Make sure your call to a stylesheet is within the cfdocument tags. Basically your entire layout. I'm not sure how Acrobat handles font or other obsolete tags, but it does handle most of CSS properly. Sandra Clark == http://www.shayna.com Training in Cascading Style Sheets and Accessibility -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 04, 2006 2:07 PM To: CF-Talk Subject: Re: Quicky question re: cfdocument and fonts Peter -- Thanks for the idea, but I had also tried (prior to my original posting) the inline style stuff such as you suggested -- and got exactly the same result. Any other ideas? There has to be some way to use cfdocument to generate a PDF with a font other than Times Roman... -- LBA Quoting Peter Boughton [EMAIL PROTECTED]: What about if you try using span style=font: Whatever;../span ? Howdy -- I'm making my first use of cfdocument (no jokes about being behind the times, please -- I've been busy with other things), and it seems that no matter what I specify in the font tag inside the cfdocument, the resulting PDF displays the content in the same Times Roman font in whatever the default font size is (looks like about 12). I tried lots of the different font faces listed on my CF Administrator's Font Management page, but I keep getting the same result. Have also tried both yes and no fontembed settings, makes no difference. For that matter, I can't even get it to pay attention to font size=whatever tags. The size of the type in the PDF is properly affected by tags like h1, but font doesn't seem to be having any effect at all. I searched around a bit before writing this post, and I found a little bit of material alluding to there being some font problems
Re: Follow-up re: Quicky question re: cfdocument and fonts
Christine -- Alright, you've told me twice now, I'll take a hint :-) and upgrade my server. Thanks! -- LBA (Larry, please -- not even my mother calls me Lawrence) P.S. Um, as long as I'm doing a good stupid impression in public, I might as well also ask: where do I find the TTF sfile to install for the TrueType fonts listed on my server's Font Management page? All of these fonts are listed as being installed in my server's /usr/share/fonts/default/TrueType directory, but I don't see anything that looks like an sfile hanging around in there. For that matter, I have no idea how those TrueType fonts came to be on my server in the first place; I'm presuming the CFMX 7.0 install put them there for use with cfdocument and cfreport. Christine Davis wrote: Lawrence, 7.0.1 and 7.0.2 fix a number of issues related to CFDocument. 1. ID 60865 PDF files created with the cfdocument tag may not render content with the specified fonts. To avoid this issue, install the TTF sfile for the font you want to use. In addition, on OS X, if the content contains any Unicode characters, the content may not render properly. To avoid this issue on OS X, install Arial Unicode MS or any other Unicode font in .ttf form. 2. ID 60212 cfdocument text clipping at bottom/top of page also fixes 59991 3. ID 61378 Threading Issues And a couple of others I didn't care so much about... It also adds some additional functionality to the CFDocument tag. Our issues with font size and font face decreased significantly after we installed the upgrade. We had examples of the same HTML code showing the correct font face on our development (7.0.2) server and our production (7.0.0) server. I cannot tell you what to do with your server, but my experience has been that upgrading greatly helped with our CFDocument problems. It's not perfect, and quirks still get through. Even with the upgrades applied styles don't always work as expected.. but it is closer now. Thanks! Christine Davis ColdFusion Lead Nations Technical Services Prairie Village, KS 913-748-8044 ext 4703 [EMAIL PROTECTED] -Original Message- From: Lawrence B. Afrin, M.D. [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 04, 2006 5:16 PM To: CF-Talk Subject: Follow-up re: Quicky question re: cfdocument and fonts Chris, Christine, Sandra, and everyone else -- A bit of a mea culpa here, with some progress but some persistent problems... Thanks again for your previous efforts to help me with my problem making font adjustments in PDFs produced with cfdocument in CFMX 7.0 (Linux). I discovered a typo in my inline style font directive that was causing part of the problem. The font tag still doesn't work, but inline style directives are beginning to work. I now have partial control over the font in the PDF, by which I mean I can control font sizes using the font-size directive and, using the font directive, I can switch (to some degree) among the fonts of font type ADOBE-BUILT-IN as listed on the CFMX server's Font Management page. By some degree I mean I seem to be able to access only the base fonts. For example, font:Times-Roman works, but font:Times-Italic doesn't. Furthermore, whenever I refer to any of the fonts that are listed in the Font Management page as being of font type TRUETYPE, I merely get the default Times Roman. Along the lines of if it ain't broke, don't fix it, I'm now wondering if I really do have to update my server as you, Christine, suggested. Do y'all have any other suggestions for accessing the TrueType fonts (e.g., Arioso, Chevara, Conga, Helmet) listed on my CFMX server's Font Management page? Again, I've tried this with both fontembed settings (yes and no), to no avail; I just keep getting the default Times Roman whenever I reference a TrueType font. I've also verified my font directives are inside the cfdocument structure. -- LBA Sandra Clark wrote: Make sure your call to a stylesheet is within the cfdocument tags. Basically your entire layout. I'm not sure how Acrobat handles font or other obsolete tags, but it does handle most of CSS properly. Sandra Clark == http://www.shayna.com Training in Cascading Style Sheets and Accessibility -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 04, 2006 2:07 PM To: CF-Talk Subject: Re: Quicky question re: cfdocument and fonts Peter -- Thanks for the idea, but I had also tried (prior to my original posting) the inline style stuff such as you suggested -- and got exactly the same result. Any other ideas? There has to be some way to use cfdocument to generate a PDF with a font other than Times Roman... -- LBA Quoting Peter Boughton [EMAIL PROTECTED]: What about if you try using span style=font: Whatever;../span ? Howdy -- I'm making my first use of cfdocument (no jokes about
RE: Quicky
cfset Field1 = Right(Field1, 12) = Russel Madere Senior Software Engineer Turbo Squid, Inc. http://www.turbosquid.com Is your head tag nested within your body tag? -Original Message- From: Janine Jakim [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 2:15 PM To: CF-Talk Subject: Quicky I know the answer is easy, but it's late on Friday and it's been a long week... Ok I need to set a variable with CFSET- (not in a query) to be the last 12 characters of another field. ie: I want FIELD1: 12345678901234567890 to be set as: FIELD2: 901234567890 Thanks in advance. j __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Quicky
cfset variable = #Right(field1, 12)# That will get the rightmost characters (9 of them) from your field. Paul Giesenhagen QuillDesign http://www.quilldesign.com SiteDirector v2.0 - Commerce Builder I know the answer is easy, but it's late on Friday and it's been a long week... Ok I need to set a variable with CFSET- (not in a query) to be the last 12 characters of another field. ie: I want FIELD1: 12345678901234567890 to be set as: FIELD2: 901234567890 Thanks in advance. j __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Quicky
Whooo sorry ... (I should have said 12, someone said 9 as I was typing)... Paul Giesenhagen QuillDesign http://www.quilldesign.com SiteDirector v2.0 - Commerce Builder cfset variable = #Right(field1, 12)# That will get the rightmost characters (9 of them) from your field. Paul Giesenhagen QuillDesign http://www.quilldesign.com SiteDirector v2.0 - Commerce Builder I know the answer is easy, but it's late on Friday and it's been a long week... Ok I need to set a variable with CFSET- (not in a query) to be the last 12 characters of another field. ie: I want FIELD1: 12345678901234567890 to be set as: FIELD2: 901234567890 Thanks in advance. j __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Quicky
The other poster had it right, but just to be anal, bare in mind yo dont need either the quotes or pounds below. Simply use: right(field1,12) not #right(field1,12)# Yes, I'm being anal. ;) === Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email: [EMAIL PROTECTED] Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 3:27 PM To: CF-Talk Subject: Re: Quicky cfset variable = #Right(field1, 12)# That will get the rightmost characters (9 of them) from your field. Paul Giesenhagen QuillDesign http://www.quilldesign.com SiteDirector v2.0 - Commerce Builder I know the answer is easy, but it's late on Friday and it's been a long week... Ok I need to set a variable with CFSET- (not in a query) to be the last 12 characters of another field. ie: I want FIELD1: 12345678901234567890 to be set as: FIELD2: 901234567890 Thanks in advance. j __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Quicky
Anal is good!!! Just think what our code would look like if we were not full of analisms Success is a journey, not a destination!! Doug Brown - Original Message - From: Raymond Camden [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, April 12, 2002 12:30 PM Subject: RE: Quicky The other poster had it right, but just to be anal, bare in mind yo dont need either the quotes or pounds below. Simply use: right(field1,12) not #right(field1,12)# Yes, I'm being anal. ;) === Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email: [EMAIL PROTECTED] Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 3:27 PM To: CF-Talk Subject: Re: Quicky cfset variable = #Right(field1, 12)# That will get the rightmost characters (9 of them) from your field. Paul Giesenhagen QuillDesign http://www.quilldesign.com SiteDirector v2.0 - Commerce Builder I know the answer is easy, but it's late on Friday and it's been a long week... Ok I need to set a variable with CFSET- (not in a query) to be the last 12 characters of another field. ie: I want FIELD1: 12345678901234567890 to be set as: FIELD2: 901234567890 Thanks in advance. j __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Quicky
Thanks all- I knew it was super easy- I had stuck in rtrim instead of right- my bleary eyes didn't catch it- -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 3:30 PM To: CF-Talk Subject: RE: Quicky The other poster had it right, but just to be anal, bare in mind yo dont need either the quotes or pounds below. Simply use: right(field1,12) not #right(field1,12)# Yes, I'm being anal. ;) === Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email: [EMAIL PROTECTED] Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 3:27 PM To: CF-Talk Subject: Re: Quicky cfset variable = #Right(field1, 12)# That will get the rightmost characters (9 of them) from your field. Paul Giesenhagen QuillDesign http://www.quilldesign.com SiteDirector v2.0 - Commerce Builder I know the answer is easy, but it's late on Friday and it's been a long week... Ok I need to set a variable with CFSET- (not in a query) to be the last 12 characters of another field. ie: I want FIELD1: 12345678901234567890 to be set as: FIELD2: 901234567890 Thanks in advance. j __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Quicky
I think there are the seeds to a book in there somewhere: Cold Fusion for Anal people? Perhaps a full line of for anal people books - why not, people admit they are dummies and idiots at Borders every day g. -Original Message- From: Douglas Brown [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 2:40 PM To: CF-Talk Subject: Re: Quicky Anal is good!!! Just think what our code would look like if we were not full of analisms Success is a journey, not a destination!! Doug Brown - Original Message - From: Raymond Camden [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, April 12, 2002 12:30 PM Subject: RE: Quicky The other poster had it right, but just to be anal, bare in mind yo dont need either the quotes or pounds below. Simply use: right(field1,12) not #right(field1,12)# Yes, I'm being anal. ;) === Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email: [EMAIL PROTECTED] Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 3:27 PM To: CF-Talk Subject: Re: Quicky cfset variable = #Right(field1, 12)# That will get the rightmost characters (9 of them) from your field. Paul Giesenhagen QuillDesign http://www.quilldesign.com SiteDirector v2.0 - Commerce Builder I know the answer is easy, but it's late on Friday and it's been a long week... Ok I need to set a variable with CFSET- (not in a query) to be the last 12 characters of another field. ie: I want FIELD1: 12345678901234567890 to be set as: FIELD2: 901234567890 Thanks in advance. j __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Quicky
Sounds like a good idea. I'll take care of the Evaluate chapter. ;) Of course, at the same time, I can't stand people who change code from cfif x is y to compare because supposedly compare is .001 ms faster. ;) === Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email: [EMAIL PROTECTED] Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 4:05 PM To: CF-Talk Subject: RE: Quicky I think there are the seeds to a book in there somewhere: Cold Fusion for Anal people? Perhaps a full line of for anal people books - why not, people admit they are dummies and idiots at Borders every day g. __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Quicky
Hmmh anal and bare (as in naked) mind. What kind of list is this anyway? ;) - Original Message - From: Raymond Camden [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, April 12, 2002 1:30 PM Subject: RE: Quicky The other poster had it right, but just to be anal, bare in mind yo dont need either the quotes or pounds below. Simply use: right(field1,12) not #right(field1,12)# Yes, I'm being anal. ;) === Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email: [EMAIL PROTECTED] Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 3:27 PM To: CF-Talk Subject: Re: Quicky cfset variable = #Right(field1, 12)# That will get the rightmost characters (9 of them) from your field. Paul Giesenhagen QuillDesign http://www.quilldesign.com SiteDirector v2.0 - Commerce Builder I know the answer is easy, but it's late on Friday and it's been a long week... Ok I need to set a variable with CFSET- (not in a query) to be the last 12 characters of another field. ie: I want FIELD1: 12345678901234567890 to be set as: FIELD2: 901234567890 Thanks in advance. j __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Quicky
It's one that degrades as the week goes by, I think... And it IS Friday! -Original Message- From: Don Vawter [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 2:02 PM To: CF-Talk Subject: Re: Quicky Hmmh anal and bare (as in naked) mind. What kind of list is this anyway? ;) - Original Message - From: Raymond Camden [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, April 12, 2002 1:30 PM Subject: RE: Quicky The other poster had it right, but just to be anal, bare in mind yo dont need either the quotes or pounds below. Simply use: right(field1,12) not #right(field1,12)# Yes, I'm being anal. ;) === Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email: [EMAIL PROTECTED] Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 3:27 PM To: CF-Talk Subject: Re: Quicky cfset variable = #Right(field1, 12)# That will get the rightmost characters (9 of them) from your field. Paul Giesenhagen QuillDesign http://www.quilldesign.com SiteDirector v2.0 - Commerce Builder I know the answer is easy, but it's late on Friday and it's been a long week... Ok I need to set a variable with CFSET- (not in a query) to be the last 12 characters of another field. ie: I want FIELD1: 12345678901234567890 to be set as: FIELD2: 901234567890 Thanks in advance. j __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Quicky
Of course, at the same time, I can't stand people who change code from cfif x is y to compare because supposedly compare is .001 ms faster. Actually... compare does execute about 2.5 times faster than doing a direct string comparison, at least on my servers anyway. Granted, if there's only a couple of comparisons to make, it's not worth changing code that's already written (unless it's within a massive loop or a page that gets his several thousand times a minute), but I always use compare/comparenocase on new code regardless. -Justin Scott, Lead Developer Sceiron Internet Services, Inc. http://www.sceiron.com __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Quicky
Sounds like a good idea. I'll take care of the Evaluate chapter. ;) How many pages does it take to say stop using it so much? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Quicky
LOLgood one Dave ;-) Bryan Stevenson VP Director of E-Commerce Development Electric Edge Systems Group Inc. p. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Dave Watts [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, April 12, 2002 5:51 PM Subject: RE: Quicky Sounds like a good idea. I'll take care of the Evaluate chapter. ;) How many pages does it take to say stop using it so much? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists