How can I tell shared cold fusion server to find fonts in a custom location

How can I tell the shared cold fusion server to look for fonts in a folder of my choosing rather than just look in c:\windows\fonts\?

I don't have permissions to access that folder.

I need for the system to look for fonts at:

d:\ftp\myroot\fonts\

This is because I am using the <CFdocument> tag which is converting an HTML page to a PDF.

I have to embed the fonts I use so that everyone who downloads the PDF can read it.  

I'm running Cold Fusion MX 7 on a windows 2003 server.
I do not have permissions to the cold fusions administrator.

So I need a line of code that will force the system to look at the fonts I have uploaded.

Any ideas?
bigmikey88Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SidFishesCommented:
my understanding is that you can't specify a font path.

afaik, cfdocument requires fonts to be available in {systemroot}\fonts



0
bigmikey88Author Commented:
that is bad news

i will have to find a work around, some way to load the fonts

or some PDF creating software that allows me to point to the fonts

mike
0
SidFishesCommented:
you might try this

http://www.easel2.com/cfxpdf_support.html

I haven't used it but it was pretty much the standard pdf generator prior to cfdocument. they have a free evaluation version so you can find out if you can specify font paths...but the production version is not free.
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

SidFishesCommented:
actually you can probably forget that, if you don't have access to CFAdmin you'll need to convince the host to install the CFX...and most won't. Without access toCFADMIN or a cooperative host, you are going to be out of luck.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bigmikey88Author Commented:
SidFishes, are u saying the easel2  solution might not work?
0
SidFishesCommented:
yes, CFX's (which are usually DLL's or JAR's) need to be registered with the CFAdmin so if you don't have admin access or a host who is willing to install it for you you won't be able to use it.
0
bigmikey88Author Commented:
I am allowed to register customer tags and the host will help do that also.

I just can't access cfadmin directly

I use some nested tables.  The easel2 product mentions a problem with them.  Have u had any experience with that?  I need 2 levels of tables for this project to work.

I am investigating the easel2 product but also looking at others

Seems most people dropped support of their products around 2003

but the cfdocument tag is a bit quirky so i would like to find an up to date product that is affordable


0
SidFishesCommented:
"Seems most people dropped support of their products around 2003"

which is about the time that cfdocument was introduced.

If you can register the cfx, you may be ok with a third party product. All I can suggest is try the various eval versions and see what works for you.
0
_agx_Commented:
I too find cfdocument a bit quirky at times.  So SidFishes' suggestion is worth exploring.  

But can I ask, if the host will register cfx tags for you, which are riskier in some ways than fonts, why can't they just register the fonts in the first place? :)  ie Drop them in the appropriate jre font folder.
0
bigmikey88Author Commented:
agx,

Can u tell me what a jre font folder is?

then i will ask my host to try it

they have no trouble registering custom tags, in fact i am allowed to register custom tags and activex dll myself.  I just can't have permission to   windows\fonts

they did tell me to put the font files in my root directory, which i did

i just do not know how to get cfdocument to look there so it can grab the fonts it wants to embed




mike
0
_agx_Commented:
Its just a folder used by whatever JRE (java runtime environment) is used ColdFusion. The location may vary depending on the server setup, but in say a default Developer version installation the font folder would be located at

C:\CFusionMX7\runtime\jre\lib\fonts  (or for ColdFusion 8)
C:\ColdFusion8\runtime\jre\lib\fonts

Putting the fonts in that folder should make them accessible to CF.  There is also a Font Management screen in the CF Administrator, but that did not always work for me.  
0
SidFishesCommented:
that's a good tip agx... but I'm guessing he doesn't have accessing to the file system to get at the jre folder...

I'd forgotten about the font mgmt in cfadmin...might be the best hope

0
_agx_Commented:
Yes, I am thinking the host would have to do it for him too.  The only reason I suggest that option is because I never did have much luck with the font management admin screen.  But maybe that was just a problem with my configuration.
0
bigmikey88Author Commented:
OK

I got lucky.

My hosting service realized that they had the wrong permissions on the windows\fonts\ folder.

Once they reset the permissions <CFDocument> can now embed fonts which is what I needed.

So I won't have to invest time in trying a 3rd party solution.

But many thanks to SidFishes and AGX for helping.  I split the points between you two.  Hope that is OK

Mike
0
_agx_Commented:
Good to hear.   Thanks. The spit is fine with me.  
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.