http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Font.html#createFont(int,%20java.io.InputStream) http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Font.html#TYPE1_FONT http://java.sun.com/j2se/1.5.0/docs/guide/2d/new_features.html#createFont
Reading what's there I don't have high hopes that you can load CEF fonts. See also: http://support.adobe.com/devsup/devsup.nsf/docs/50568.htm If we were able to figure out in what specification CEF is documented and the embedded font data were a full Type 1 font, it shouldn't be hard to extract it from a stream. I currently don't see through there: CEF, CFF, Type 2, TrueType, OpenType, blah, blah, blah. A real mess. On 15.06.2005 15:35:37 Thomas DeWeese wrote: > Hi All, > > Just to throw in my 2 cents. Batik "Handles" this through the > @font-face CSS property. This allows you to provide a mapping > from a CSS font-family (with weight etc) to a font file on disk/network > etc: > > @font-face { font-family: "CSS Batik SVGFont"; > src: url(batikFont.svg#Batik); } > > Peter B. West wrote: > > J.Pietschmann wrote: > > > >> Jeremias Maerki wrote: > >> > >>> Ok, but this assumes that you work in concert with AWT's font subsystem. > >> > >> Well, AWT doesn't provide a way to get the file for a font, but > >> we can at least get an AWT Font from a TTF file. > > > > And a Type1 file (Java 5). Java just keeps getting better. > > This is _very_ interesting. Do you have a reference on this? > Illustrator has a bad habit of embedding CEF (CFF?) fonts in > SVG - these are Type1 font outlines in a TrueType/OpenType wrapper > If the JDK supports Type1 fonts it might support these now as well > (hoping ;). Jeremias Maerki