[JAVA2D] Kerning
What's the situation with kerning? Can I assume that kerning is not supported on Type1 fonts? If so, are there any plans to enable the reading of afm files associated with Type1 fonts to obtains kerning data? Even with truetype fonts, I don't seem to get any result from setting the KERNING attribute to KERNING_ON. I've tried generating AttributedStrings using both FONT_FAMILY, etc, and using an instance of FONT. No difference. Is there a secret? Peter === 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".
Re: [JAVA2D] Kerning
Peter B. West wrote On 08/15/06 04:29,: What's the situation with kerning? Can I assume that kerning is not supported on Type1 fonts? If so, are there any plans to enable the reading of afm files associated with Type1 fonts to obtains kerning data? Not supported and there are no plans. Even with truetype fonts, I don't seem to get any result from setting the KERNING attribute to KERNING_ON. I've tried generating AttributedStrings using both FONT_FAMILY, etc, and using an instance of FONT. No difference. Is there a secret? It should work, assuming you are letting JDK do the layout. I know you were using GlyphVector. 'Font.layoutGlyphVector' should apply the kerning but createGlyphVector() doesn't process the text and just assigns default advances so maybe that's your problem? -phil. Peter === 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".
Re: [JAVA2D] Kerning
On Tue, 2006-08-15 at 05:08 -0700, Phil Race wrote: > > Peter B. West wrote On 08/15/06 04:29,: > > >What's the situation with kerning? > > > >Can I assume that kerning is not supported on Type1 fonts? If so, are > >there any plans to enable the reading of afm files associated with Type1 > >fonts to obtains kerning data? > > > > > > Not supported and there are no plans. > > >Even with truetype fonts, I don't seem to get any result from setting > >the KERNING attribute to KERNING_ON. I've tried generating > >AttributedStrings using both FONT_FAMILY, etc, and using an instance of > >FONT. No difference. Is there a secret? > > > > > > It should work, assuming you are letting JDK do the layout. I know you > were using > GlyphVector. 'Font.layoutGlyphVector' should apply the kerning but > createGlyphVector() > doesn't process the text and just assigns default advances so maybe > that's your problem? > Phil, I ran some quick tests using a LineBreakMeasurer and TextLayout. Text was "New wave away WAVE AWAY", which should show some variation. The advance of the layout did not vary. I'll have a look at the GlyphVectors. Peter === 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".
Re: [JAVA2D] Kerning
If its not working for TextLayout then there's not much point looking at GlyphVector. I suggest to try using Times New Roman or perhaps Arial directly with TextLayout This definitely works fine and if there's still no kerning you probably have a bug in your code. -phil. Peter B. West wrote On 08/15/06 06:35,: I ran some quick tests using a LineBreakMeasurer and TextLayout. Text was "New wave away WAVE AWAY", which should show some variation. The advance of the layout did not vary. I'll have a look at the GlyphVectors. Peter === 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".