Hi,
        You should try out the 1.4 beta.

        It should anti-alias the Type1 fonts although since Font.createFont()
        still won't support them your best best is to copy the files into
        the jre/lib/fonts directory.
        JDK will find them there and hopefully this is a "single install"
        for you if you specify that JRE to be the one that runs your app.

        I don't know why Font.createFont() should fail for TrueType
        fonts, so long as the name doesn't clash with some other font and
        you use Font.deriveFont(..) on the returned font and not new Font(..)

-phil.

> Date: Fri, 24 Aug 2001 17:47:11 -0700
> From: [EMAIL PROTECTED]
> Subject: [JAVA2D] Fonts in Java2D
> To: [EMAIL PROTECTED]
>
> I want to display mathematics text in a Java2D application (i.e. not an
applet).
> There is already an excellent program IDVI that does this in applets, but for
various reasons
> I want to develop another one for applications.   For this purpose,
> it is absolutely necessary to use
> the fonts associated with Don Knuth's TEX.  No font substitution
> is acceptable.  The highest quality fonts available without cost
> are those released by BlueSky in Type1 format and available in CTAN archives.
>
> 1.  The ideal solution would be for me to read the BlueSky fonts directly into
my
> application from files located in the directory of the application.  (I
certainly
> do not want hundreds of undergraduate students to have to
> deal with installation of system fonts.)
>
> However:
> (a) currently, Font.createFont(int, InputStream) only accepts TrueType
> fonts as input.
> (b) as far as I can tell, although Java2D can display Type1 fonts it does not
> apply anti-aliasing to them (which it does, apparently, to TrueType).
> Not even when I convert the glyphs to shapes, as far as I can tell
> (which would probably destroy the font's hinting, anyway).
>
> What are Sun's plans for dealing with these problems?  These same problems are
> probably met in dealing with internationalization more generally
> (after all, mathematics is a kind of international language).  It is hard to
> see Java2D as a professional typesetter's tool until they are fixed.
>
> 2.  There are other difficulties associated with (a): on my LINUX machine
> I cannot use Font.createFont() at all, even fo some characters appear OK,
> including the basic ones such as the standard alphabet, but
> *most* characters - and nearly all the specifically mathematical ones -
> appear only as empty boxes.  These appear OK in the Type1 fonts
> inside Java (although, as I mention above, rather jagged).  What's going on?
>
> Bill Casselman
> Mathematics Department
> University of British Columbia
>
> ===========================================================================
> 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".

Reply via email to