The LineMetrics or the FontMetrics? What was the exact API call you used? I'm not sure you can expect the fonts to be completely identical, but there's a definite difference here.
LineMetrics for a specific string I would expect to be very close if the fonts are truly designed to be the same. For the FontMetrics, the font should provide this information. I think all TT fonts will do this. I'm not so sure about all Type1 fonts, and if its not there we use some heuristics to estimate it. There's no guarantee that will then be the same as the font would have provided. In your case is it possible there's more in the TT font so leading to the different metrics? Or we may not be properly reading the information this font provides. To be sure we'd have to have these fonts to analyse and to know which JDK version (1.4 or later I hope!) you are using. -phil. > Date: Wed, 27 Nov 2002 00:40:24 -0700 > From: Harald Luebeck <[EMAIL PROTECTED]> > Subject: [JAVA2D] Adobe Type1 Font's & True Type Fonts > To: [EMAIL PROTECTED] > > You are able to use Adobe Type1 Font's on an Windows Platform. > > 1) Copy the pfb and afm file to jre/lib/fonts > 2) Start your Programm with -Dsun.java2d.noType1Font=true > > The Font Engine is now able to use Adobe Type1 Font's > > Now my Problem: > > I have the same Font as Type1 and as TrueType File, but the LineMetrics are different ! Why ????? > > A Sample: > True Type: Bernhard Fashion BT > Ascent: 69.046875 > Descent: 22.183594 > Height: 91.23047 > Leading: -0.0 > BOffset: 0.0 > > Type1 : Bernhard Fashion > Ascent: 57.916733 > Descent: 11.986496 > Height: 71.99097 > Leading: 2.087738 > BOffset: 0.0 > > =========================================================================== > 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".
