Menu

#2 Printed text overlaps (wrong Graphics2D context)

open
nobody
None
5
2004-05-06
2004-05-06
Anonymous
No

You use a graphic context to construct a set of
StringDrawer. When you build those objects you use a
FontRenderContext (based on the GUI Graphics context)
to obtain a text width.

Then you print the text to a printer Graphics context ...
which sometimes has a different layout size.

For example "Times New Roman 14, 16" doesn't works
correctly:text overlaps...

Luciano D'Ercoli
dercoliluciano@libero.it

Discussion


Log in to post a comment.

MongoDB Logo MongoDB