View Full Version : Web Script help - Java etc


D2J
02-04-2005, 14:59
G'day all :D

I've done a site in non-standard fonts and I'm fully aware that as these are non standard anyone viewing my site will just see it in standard text..

So here's the burning question,

Is it possible to write some kind of java script or batch file that will prompt users to allow these fonts to be installed on their machines as soon as they hit my home page ?

Hopefully you techies out there should know :)

Gratefully yours

Dee :thumbsup:

BobDaBuilder
02-04-2005, 16:38
There's a sticky one.... Hmmmmm, i'd love to help you mate but I am in the process of learning all that and don't really know a great deal, infact some might say I know sweet FA

Sorry buddy....

Jumping from HTML to Java (As I am trying to do as I am pretty much on top of HTML now) is like going from ga ga to Japanese....lol

:hihi: :hihi: :hihi:

Cyclone
02-04-2005, 17:47
firstly, don't confuse java with javascript. Java runs on the server side, javascript runs on the client machine.

You could probably create a popup window in javascript that pointed to a file url for the fonts in question, people would then be prompted to download then.
But addressing the hole issue i'd suggest that no-one will download them (as they might be dodgy) which would suggest that for good website design, you should probably stick to standard fonts.

march
02-04-2005, 17:53
If you really want to use a non standard font your best bet would be to create a gif file that contained the text and include that on the page. Although that isn't really recommended for a number of reasons - page load time, search engine performance etc.

You should really stick to using a Arial, Helvetica and sans-serif combined to ensure everyone has the font you are using.

JoeP
02-04-2005, 17:59
A lot of Java programs (applets) do run client-side - the chat room on this forum, for example, downloads Java classes and runs them in the Java Virtual Machine on your PC.

As has been suggested, a Javascript dialogue can be used to suggest the suers download teh fonts, but actually determining whether the fonts are already installed is not necessarily straight forward.

I wouldn't bother, Deejay. I'd try and stick with standard fonts because people are not going to bother to download stuff to look at just one site. No disrespect, but you ain't the BBC's web site... :)

Some users will not be able to install new fonts on their PC because of the way in which their PCs are set up - especially corporate / office computers that are frequently locked down.

Seriously, stick to the common fonts used in Web design. If you need to display text that is in an unusual font, then you can do it y doing the text as a graphic and downloading that, although that's really only suitable for small amounts of text - logos, menu text, etc. and even then has usability issues associated with it. For content text it's easier to just use a common serif or sans-serif font.

Joe

PS - Cyclone - your inbox is full - I wanted to respond to your PM from last night but haven't been able to do so.

Cyclone
02-04-2005, 18:06
good point i'd forgotten about applets, don't ever seem to see them used at work and they completely slipped my mind.

I'll sort ouit my inbox, pm me again in 30 mins.

cheers

LL200
02-04-2005, 19:03
Its perfectly possible embed fonts in HTML (however the borwser support may not be very good nowadays).

Here's just one tutorial:
http://www.spoono.com/html/tutorials/tutorial.php?id=19

Search for 'embed font html'

However, don't do it. Read the tutorials for reasons why.

D2J
03-04-2005, 09:42
Oh well.. Looks like my Sunday is gonna be spent changing all my pages..

Thanks all :thumbsup:

JoeP
03-04-2005, 10:32
Now Deejay,

If you'd used a style sheet you'd only have to change that....:)

Please don't thump me the next time you see me!

Joe