HI , otherwise, u can use pcf fonts (protable compiled fonts)
On Sat, 30 Oct 1999, Phil Race wrote:
> What should work with all versions (1.2 on) is to install the fonts in
> jre/lib/fonts and then call getAllFonts() to encourage the runtime to
> load the fonts. This is how the JDK Lucida fonts are loaded and I can't
> think why other fonts should not also be loaded by the same mechanism.
>
> In 1.3 I think it is no longer necessary to call getAllFonts() for fonts
> in that directory to be loaded.
>
> Of course jre/lib/fonts is not your application directory - its the JRE
> directory.
>
> But additionally 1.3 will allow a TrueType font to be loaded from any
> InputStream - and that InputStream could be a network resource, a jar or
> a local file on disk.
> The API could even be used to support dynamically creating and then using
> a TT font. The API to support this is Font.createFont().
> We do not support Type1 fonts through this API.
>
> -phil.
>
> > Date: Sat, 30 Oct 1999 17:15:21 -0700
> > From: Gilbert Ramirez <[EMAIL PROTECTED]>
> > Subject: [JAVA2D] Using specialized fonts across platforms
> > To: [EMAIL PROTECTED]
> >
> > I am trying to write an application using the Java2D API, but
> > my application needs a specialized font. I intend to distribute
> > this font with my Java application, as either TrueType or Type 1.
> > I want to be able to use my font from within the Java application
> > without having the user install the font onto his host OS using
> > the OS-specific font-installation method (MacOS, Win, Unix).
> >
> > How do I actually *use* a font that exists solely in my application's
> > directory, and is not installed on the host OS?
> >
> > I have tried playing with the JAVA_FONTS env variable and using
> > getFont() and the Font constructor with the filename of my font, but this
> > does not work.
> >
> > Thanks for any help,
> >
> > --gilbert
> >
> > ===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff JAVA2D-INTEREST". For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".