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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load a font on startup?

Status
Not open for further replies.

PS1983

Technical User
Nov 6, 2001
83
AT
Hey !
another question=)!

is it possible to install a font on a pc with javaScript, when a page opens?

for example i need the ttf called Trebuchet MS, is there a script to make it able?

plz help

thx
 
dont need to use script you can <embed> the font in your page, however this does increase the file size of your page quite a bit
 
well that wouldn't really matter
by now the size of the page is 18 MB !!!!!
so one MB more or less won't matter that much =)


<embed src=&quot;any.ttf&quot;> in the body would do it?
thx
 
you have a page at18mb??!!! that must take bout a month and a half to download Kenneth Birney
User Interface Programmer
Scottish Police
 
well its like a huge online furniture catalog so loads of pictures!!!!
i was suprised myself!!
but i don't care it has an image preloader, and with a good connection its ok ;))
 
thx yes this column is quite interesting!
and can i install the font with the embed tag?
or does't that work?

i didn't try so far, will try later

thx
 
don't know, never tryed that (wasn't in any need of thus stuff)
let me know if that would work, ok? Victor
 
sure will notify you tomorrow!
good evening
 
hi!,
first: i converted all 150 pics from gif to jpg now the size is 5 MB jeah!

2nd: i think the

<embed src=&quot;trebuc.ttf=&quot;true&quot; autostart=&quot;true&quot; />

doesn't work, yet i will have a look around and tell u my results @vituz and the rest who cares =)
 
Why did you write
Code:
<embed src=&quot;trebuc.ttf=&quot;true&quot; autostart=&quot;true&quot; />
? the part: src=&quot;trebuc.ttf=&quot;true&quot; sound a bit akward? or have I missed something... i would have written it like this: <embed src=&quot;trebuc.ttf&quot; autostart=&quot;true&quot;> (but again, that is what I would have done, could be wrong... been that before)

Another thing, pornstar1983, are those 18 megs loaded in one page? Like all images viewable from(or downloaded from the) in .html file? Try splitting it into severla, might increse No. of visitors... I for sure Would never visit a site that downloads 18megs at once... and I'm on a 10mb lan!! My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
 
=)
forget about the font; thats nonsense anyway i'll choose a standard installed one that looks similar!

and the 18MB ; well now size is like 7 MB, bit better =)

starting with this page i had all 18 MB loaded in one page, but now i have an image preloader for every page and thats ok, no long waiting times!

i'll post the link in a few hours, i'll fix the last bugs until then;

but thx for your comments, you are right i' wouldn't like to load a 18 MB site=) either!

so stay tuned!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top