Eliot Kimber wrote:

Andreas L. Delmelle wrote:

Hope this helps!


It did. If I understand what AWTFontMetrics is doing, I can just use that class directly, or adapt that code for more standalone use. I will explore that route.

This turned out to be much easier than I realized, at least for non-OpenType fonts. I now have a simple Saxon extension class that appears to return reasonable results for various fonts.


However, it appears that OpenType fonts are not supported by the Java 1.3.1 AWT stuff, at least this call:

  Font[] fonts =
       GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts();

results in a list that does not include my OpenType font but does include all the TrueType fonts. It appears that Java 1.4 includes OpenType support but 1.4 is not an option for me at the moment.

Thanks for the help.

Cheers,

Eliot
--
W. Eliot Kimber
Professional Services
Innodata Isogen
9030 Research Blvd, #410
Austin, TX 78758
(512) 372-8122

[EMAIL PROTECTED]
www.innodata-isogen.com



Reply via email to