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

CFIMAGE - text with curly quotes?

New Here ,
Dec 07, 2007 Dec 07, 2007

Copy link to clipboard

Copied

Does anyone know how to add a curly quote to text generated by cfimage in CF8? I tried ASCII, but it just prints the ascii onto my image. Here is my code -- it's pretty much straight out of cfdocs.
TOPICS
Advanced techniques

Views

880

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
Guest
Dec 08, 2007 Dec 08, 2007

Copy link to clipboard

Copied

What you want is ’ but I don't see any way to get it into the string.

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
Guest
Dec 10, 2007 Dec 10, 2007

Copy link to clipboard

Copied

try using the CF CHR() function with the extended character code for the character you want.

Here's a list of extended codes with pictorial examples:
http://www.petefreitag.com/cheatsheets/ascii-codes/

Something like:
<cfset ImageDrawText(myImage,"nice - we won#chr(148)#t",5,71,attr)>

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
New Here ,
Dec 10, 2007 Dec 10, 2007

Copy link to clipboard

Copied

Some of those extended characters work in CFIMAGE. The trademark symbol did, #chr(174)#, but curly quotes (when the image rendered was included in a pdf created by cfdocument) looked like a white rectangular box.

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
Guest
Dec 11, 2007 Dec 11, 2007

Copy link to clipboard

Copied

is there a curly quote character within that Comic Sans MS font? the white rectangular block usually indicates that there's an out-of-range character.

http://www.myfonts.com/fonts/microsoft/comic-sans/ms-bold/win-ttf/1158/charmap.html




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
Community Expert ,
Dec 16, 2007 Dec 16, 2007

Copy link to clipboard

Copied

I just went to the first site Google returned, Ted’s HTML Tutorial, and copied the left and right curly quote characters directly into the strings in your code. It worked. My editor is Homesite.

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
New Here ,
Dec 14, 2007 Dec 14, 2007

Copy link to clipboard

Copied

Yes - there is a curly quote in Comic Sans. I have also tried other fonts, like Zapf Dingbats and it's all white rectangular boxes. It seems not all fonts are supported. I've discovered custom TTF and OTF fonts are not supported at all.

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 ,
Dec 14, 2007 Dec 14, 2007

Copy link to clipboard

Copied

they are. you just have to make sure the cf recognizes them:
in cf admin got to Font Management and see which fonts are listed there.
using the "Add" section on top of page navigate to your Windows' Fonts
folder to include all fonts installed on your system. Don't forget to
click the "ADD" button after selecting the fonts folder!!!

---
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
Valorous Hero ,
Dec 15, 2007 Dec 15, 2007

Copy link to clipboard

Copied

These two entries might help.
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:23512#118111
http://www.pemberley.com/janeinfo/latin1.html#unicode

Short answer the default encoding is usually UTF-8 where "curly" quotes are in the 8000 character range: 8216, 8217, 8220, 8221, ...

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
New Here ,
Dec 17, 2007 Dec 17, 2007

Copy link to clipboard

Copied

A copy and paste from a curly quote on a web page worked. Thanks to everyone who looked at this!

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
Valorous Hero ,
Dec 17, 2007 Dec 17, 2007

Copy link to clipboard

Copied

LATEST
quote:

Originally posted by: rachelcp
A copy and paste from a curly quote on a web page worked.


Using the correct character code for your current encoding #chr(8216)#, #chr(8217)# , etc.. works as well.

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