Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Kerning in StyledDocument (or fonts) ?

Status
Not open for further replies.

borbjo

Programmer
Mar 29, 2002
33
0
0
NO

Is it possible?

The problem: I have created a WYSIWYG editor that generates a PDF. The client (Swing) uses a JTextPane and TrueType fonts, and the PDF is generated on the server using PostScript fonts that are equivalent to the TTF fonts.

The problem is that the lines are wrapped differently because of the font kerning.

That is where I think the problem is anyway - I specify font, font size, indent (left, right, first line), Line Leading, Paragraph space before & after -> All these variables are the same on the client and the server.

So, kerning it is? But I can't find kerning in StyleConstants / Font.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top