[OpenJDK 2D-Dev] Request for review : FreeType embedded in OSX packages

Henri Gomez henri.gomez at gmail.com
Wed Oct 17 18:27:04 UTC 2012


2012/10/17 Phil Race <philip.race at oracle.com>:
> I filed : (JDK-8001065) [macosx] OpenJDK on OS X should use bundled
> freetype, not one from the system
>
> Sample code is just
>
> import java.awt.Font;
> public class CreateFont {
>
> public static void main(String args[]) throws Exception {
>    Font f = Font.createFont(Font|.TYPE1_FONT, new
> java.io.File("mytype1font.pfa"));
> }
> }
>
>
> You can get a font from |||
> <http://docs.oracle.com/javase/6/docs/api/java/awt/Font.html#TYPE1_FONT>any
> of a gazillion places .. there'll be plenty
> on almost any Linux you have handy.

I tried with a .pfb file, from http://www.ctan.org/tex-archive/fonts/
and its works with Java 7u9, OpenJDK 7 and OpenJDK 8.



More information about the 2d-dev mailing list