2012/10/17 Phil Race <philip.r...@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.