character widths in JTextPane
Hello everybody
I write a WYSIWYG Report-Editor. My Problem is that the character-widths in the Editor is different to the Output (rtf,pdf).
For Exaple in the Editor i can write 45 w's (Arial,plain,11) in one Line an in the Output is was 57. With Times New Roman i can write 64 ant in the Output is possible to set only 57 in one line.
So i have write an own BoxView for the TextPane and set int the paint method "g2D.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS,RenderingHints.VALUE_FRACTIONALMETRICS_ON)" The result is that the characterwitds are identic to the output but the caretpositions in the editor are wrong.
Then i try to set putProperty("i18n", Boolean.TRUE) in the document. The result is that the characterwidts are equals the the version without fractionalmetrics->ON.
What can i do?
Thanks Thomas

