User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 373,374 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,797 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 551 | Replies: 5
Reply
Join Date: Mar 2008
Posts: 4
Reputation: _Rei is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
_Rei _Rei is offline Offline
Newbie Poster

Using a font without installing it.

  #1  
Mar 19th, 2008
Okay, so I'm trying to write a code to a template that can reference a font stored on a server. This needs to be done without installing it on the user's system. Any ideas?

///rEI
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2008
Posts: 153
Reputation: Suomedia is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 19
Suomedia Suomedia is offline Offline
Junior Poster

Re: Using a font without installing it.

  #2  
Mar 19th, 2008
Flash


Matti Ressler
Suomedia
If you want your dreams to come true, the first thing you must do is to wake up....
Suomedia - Dynamic Content Management
Reply With Quote  
Join Date: Mar 2008
Posts: 4
Reputation: _Rei is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
_Rei _Rei is offline Offline
Newbie Poster

Re: Using a font without installing it.

  #3  
Mar 19th, 2008
Flash is not a possibility. This is being done within a PDF. The software I'm using lets me embed Javascript in the PDF to use in the backend.
EG:
var alignment = Field("ChooseAlign");
var textColor = Field("ChooseColor");
var textSize = Field("ChooseSize");

return '<color Name="'+textColor+'"><p br=false quad="'+alignment+'"><z newsize="'+textSize+'">'+Field("line1")+'</p>';

Any Fields are accessible through the backend. So, the user can pick the text in "line1", alignment, color, and size. I can set the input to text field or drop-down menu.

The really odd thing is that I've never seen some of the tags that come up if I generate some code through it (like quad):
<p style="(no style)" br="false" override="true" quad="C" findent="0" lindent="0" rindent="0" leadbefore="0" leadafter="0" widows="2" kerning="true" hyphenate="true" skipifempty="false" skipifemptyvar="false" noparabreakoncopyfit="false"><tracking newsize="0.000000"><f Name="Helvetica"><z newsize="20.0"><color Name="Black">Formatting Sample
Reply With Quote  
Join Date: Mar 2008
Posts: 153
Reputation: Suomedia is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 19
Suomedia Suomedia is offline Offline
Junior Poster

Re: Using a font without installing it.

  #4  
Mar 19th, 2008
If its PDF you can embed the fonts in the PDF


Matti Ressler
Suomedia
If you want your dreams to come true, the first thing you must do is to wake up....
Suomedia - Dynamic Content Management
Reply With Quote  
Join Date: Mar 2008
Posts: 4
Reputation: _Rei is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
_Rei _Rei is offline Offline
Newbie Poster

Re: Using a font without installing it.

  #5  
Mar 19th, 2008
I can and have been embedding them, but there are 50+ fonts, and they add up. The load times are horrendous, and I'm trying to cut down by only loading the one font that is being accessed. Hence why I'm trying to load them from offsite.

///rEI
Reply With Quote  
Join Date: Jan 2007
Posts: 2,410
Reputation: MidiMagic is on a distinguished road 
Rep Power: 6
Solved Threads: 99
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Posting Maven

Re: Using a font without installing it.

  #6  
Mar 21st, 2008
50 fonts??? Are you selling them?

If there are just a few characters in each font, it might be faster to put the parts with these fonts into a .gif or .jpg file.
Daylight-saving time uses more gasoline
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 2:59 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC