Re: Fonts in Java??
by gchurchman(at)medseek.com (Gary Churchman)
|
Date: |
Mon, 20 Mar 2000 10:34:04 -0800 |
To: |
"Web Wizard" <wizard(at)curunir.com>, <hwg-techniques(at)hwg.org> |
References: |
bigmailbox |
|
todo: View
Thread,
Original
|
|
Dear Web,
Java programmers who are willing to share the parameters portion of their
source will most often indicate which font faces and styles they have
enabled in their code. They are pretty much constrained to the same
guidelines as designers are, in that their applet can only display fonts
that are available on the user's system. I'm sure a rather extaordinary
applet could be designed that included its font as an embedded file, and
this would make it possible to use fonts other than those on the user's
machine, but I'm not presently aware of any like that (particularly not that
are available for public use without charge). In my experience, applets
accept Arial, Helvetica and Times New Roman in regular, bold, italic and
bold italic styles.
Gary Churchman
----- Original Message -----
From: "Web Wizard" <wizard(at)curunir.com>
To: <hwg-techniques(at)hwg.org>
Sent: Saturday, March 18, 2000 4:34 AM
Subject: Fonts in Java??
> Hi all:
>
> I've recently been messing around with some free downloaded Java applets,
just to see what I can break. <g>
>
> Most authors kindly provide the parameters which can be customized. I've
been playing with a couple of text effects applets, and in theory I should
be able to use any font I want - font being one of the customizable params.
However, I find that it doesn't work that way.
>
> I've looked in the source code (I'm no programmer, obviously, but I can
usually figure out what's causing a problem) and there's nothing that
specifies only certain fonts. It *should* take any value for that param.
>
> Can anyone tell me, are there limitations on which fonts are "acceptable"
in Java code? (Or elsewhere, for that matter.) Or is it a case of the font
name being input in a certain format? Also, I seem to be limited in the use
of font style (bold *or* italic, but not both). Any way around this?
>
> Here's the applet code I've been playing with:
>
> <applet code="Fade.class" width="300" height="100">
> <param name="bgcolor" value="ffffff">
> <param name="txtcolor" value="000000">
> <param name="changefactor" value="dx">
> <param name="text1" value="First text">
> <param name="url1" value="http://www.xxx.xxx">
> <param name="font1" value="FontName,FontStyle,FontSize">
> <param name="text2" value="Second text">
> <param name="url2" value="http://www.xxx.xxx">
> <param name="fontname2" value="FontName,FontStyle,FontSize">
> ...
> </applet>
>
> And here's an example of how I've tried to customize it:
>
> <applet
> codebase="beans/"
> code="Fade.class" width="300" height="100">
> <param name="bgcolor" value="232363">
> <param name="txtcolor" value="FFFF00">
> <param name="changefactor" value="5">
> <param name="text1" value="One">
> <param name="url1" value="url1">
> <param name="font1" value="TimesNewRoman,BOLD,32">
> <param name="text2" value="Two">
> <param name="url2" value="url2">
> <param name="fontname2" value="ComicSans,BOLDITALIC,32">
> <param name="text3" value="Three">
> <param name="url3" value="url3">
> <param name="fontname3" value="Harrington,BOLD,32">
> </applet>
>
> Any words of wisdom would be greatly appreciated.
>
> WW
>
>
>
> Anyone who is capable of getting themselves made President should on no
account be allowed to do the job. - Douglas Adams
>
>
> ------------------------------------------------------------
> Free webmail from the Web Wizards at http://www.curunir.com!
> "Bringing a little Magic to the Web" � 1999 Wizard Woman Works
>
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA