Hey, you should load your fonts (whit or without umlauts) from font
files like this:
com.lowagie.text.pdf.BaseFont gfont =
com.lowagie.text.pdf.BaseFont.createFont(file.getPath(),
com.lowagie.text.pdf.BaseFont.CP1250,
com.lowagie.text.pdf.BaseFont.EMBEDDED);
Where file is a pointer to the font file, like : /somedir/arial.ttf
And you should change the codepage to conform to your language.
Hope it helps...
Michael Blum�hr wrote:
Hello,
my application transforms text generated by a host application in pdf.
The text file contains special characters for the euro sign and german
umlauts for the printer. After reading a line I convert the special
characters, this works well in Windows.
But my application should run under Linux and there all this special
characters are shown as '-' in the pdf-file.
String str2 = str.replace('\u00bf', '�'); didn't work
String str2 = str.replace('\u00bf', '\u00e4'); // ae didn't work also
Has anybody experience with umlauts?
Michael Blumoehr
Apotheken-Rechen-Zentrum GmbH
Schottener Weg 5
64289 Darmstadt
Tel. (06151) 7002-180
E-Mail: [EMAIL PROTECTED]
++++++++++++++++++++++++++++++++++
Diese Email wurde elektronisch auf Viren �berprueft!
+++++++++++++++++++++++++++++++++++
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you
shotput
a projector? How fast can you ride your desk chair down the office
luge track?
If you want to score the big prize, get to know the little guy. Play
to win an NEC 61" plasma display: http://www.necitguy.com/?r
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions