Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

non standard *.ttf files

Status
Not open for further replies.

ADoozer

Programmer
Dec 15, 2002
3,487
AU
please bear with me, my skills lie in VB and C+

i hope this one will be easy for someone.

i am creating a web site for a friend of mine (i have limited HTML,Java,Perl experience and recently gained knowledge in JScript and VBScript) and he wants to add a non standard font to the site? (*.ttf)

is this possible?

if it is could someone give me a rough line of code to accomplish the task.

any hints/pointers/code etc very welcome and appreciated!

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
A General Guide To Excel in VB FAQ222-3383
File Formats Galore @
 
[begging image]

ok i can use the text if i put the ttf file in the fonts folder, but i was hoping i would be able to reference it from my data file

this works with the font in the font folder
<FONT Face=Blood size=&quot;+4&quot; color=red>

but not without it...

this doesnt work at all
<FONT Face=&quot;HauntedHiveRecords_Data/blood.ttf&quot; size=&quot;+4&quot; color=red>

any suggestions?!?

thnx in advance

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
A General Guide To Excel in VB FAQ222-3383
File Formats Galore @
 
Here's your problem...

the font style you specify on a wenb page can only be seen if the user has the same font on their machine. If the user doesn't have the font specified, then the page will be written with the user's default font - usually Arial of Helvetica. There's no other way around it - unless, of course, you make all text into a jpeg or gif graphic (not advisable).

You can always give your users the option to download the font from your site if they wish to see the site as it was intended.

There's always a better way...
 
oops forgot to post a link here as well, i continued this question in thread216-552120 and have been informed about @font-face.

thanks for the input.

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
A General Guide To Excel in VB FAQ222-3383
File Formats Galore @
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top