Paulo Soares schrieb:
> Does this work:
>
> paragraph = new Paragraph();
> paragraph.add(new Phrase("\uf10a", bFont));
>
>
direct utf code works, but when the value comes from the db it dont.
mysqk 5 db is set to utf8_general_ci
and in the webbrowser the chars are correct
only in iText generated pdfs the chars are missing or replaced by the
base char
> Paulo
>
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On
>> Behalf Of Mark Wassermann
>> Sent: Tuesday, December 18, 2007 3:09 PM
>> To: [email protected]
>> Subject: Re: [iText-questions] itext and junicode
>>
>> Paulo Soares schrieb:
>>
>> What special characters? Your code creates the fonts
>> but thare's no code
>> on how you actually create the text.
>>
>>
>>
>> paragraph = new Paragraph();
>> paragraph.add(new Phrase(entry.getSignature(), bFont));
>>
>>
>> Zeichen Unicode Beschreibung
>> · 00B7 Punkt in der Mitte
>> Æ 00C6 AE-Ligatur
>> æ 00E6 ae-Ligatur
>> Ë 00CB E mit Umlaut
>> ë 00EB e mit Umlaut
>> Ï 00CF I mit Umlaut
>> ï 00EF i mit Umlaut
>> Ÿ 0178 Y mit Umlaut
>> ÿ 00FF y mit Umlaut
>> Č 010C C mit Caron
>> č 010D c with caron
>> Đ 0110 D mit Strich
>> đ 0111 d mit Strich
>> Œ 0152 OE-Ligatur
>> œ 0153 oe-Ligatur
>> Ř 0158 R mit Caron
>> ř 0159 r mit Caron
>> Š 0160 S mit Caron
>> š 0161 s mit Caron
>> Ž 017D Z mit Caron
>> ž 017E z mit Caron
>> ſ 017F langes s
>> F10A Junius E
>>
>>
>> aͣ 0363 a über Buchstabe
>> aͤ 0364 e über Buchstabe
>> aͥ 0365 i über Buchstabe
>> aͦ 0366 o über Buchstabe
>> aͧ 0367 u über Buchstabe
>>
>> Stuff like this - hope you can displa them in your brouser
>>
>>
>>
>> Paulo
>>
>>
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>>
>> [mailto:[EMAIL PROTECTED] On
>> Behalf Of Mark Wassermann
>> Sent: Tuesday, December 18, 2007 2:30 PM
>> To: [email protected]
>> Subject: [iText-questions] itext and junicode
>>
>> Hi List
>>
>> I use iText to generate PDF files for
>> historical documents using the
>> font junicode. It is a speial unicode font,
>> that was developed by
>> medievists to be usesd in historical contexts.
>> It works fine
>> for normal
>> charchters in iText, but do not work with this
>> special characters used
>> in an historical context.
>>
>> Here is the code sniped In with I define the fonts:
>> --- java code ---
>> junicode =
>>
>> BaseFont.createFont(data.getServletContext().getRealPath("/") +
>> "fonts/Junicode-Regular.ttf",
>> BaseFont.IDENTITY_H,
>> BaseFont.EMBEDDED);
>> junicodeBold =
>>
>> BaseFont.createFont(data.getServletContext().getRealPath("/") +
>> "fonts/Junicode-Bold.ttf",
>> BaseFont.IDENTITY_H,
>> BaseFont.EMBEDDED);
>> junicodeItalic =
>>
>> BaseFont.createFont(data.getServletContext().getRealPath("/")
>> + "fonts/Junicode-Italic.ttf",
>> BaseFont.IDENTITY_H,
>> BaseFont.EMBEDDED);
>> nFont = new Font(junicode, 12);
>> bFont = new Font(junicodeBold, 12);
>> iFont = new Font(junicodeItalic, 12);
>> sFont = new Font(junicode, 10);
>> --- java code ---
>> I found this on the internet referint to use
>> with unicode
>> encoding, but
>> it is not workung properly.
>>
>> thx4help
>> Mark
>>
>
>
> Aviso Legal:
> Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
> informação confidencial ou legalmente protegida. A incorrecta transmissão
> desta mensagem não significa a perca de confidencialidade. Se esta mensagem
> for recebida por engano, por favor envie-a de volta para o remetente e
> apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o
> destinatário de usar, revelar ou distribuir qualquer parte desta mensagem.
>
> Disclaimer:
> This message is destined exclusively to the intended receiver. It may contain
> confidential or legally protected information. The incorrect transmission of
> this message does not mean the loss of its confidentiality. If this message
> is received by mistake, please send it back to the sender and delete it from
> your system immediately. It is forbidden to any person who is not the
> intended receiver to use, distribute or copy any part of this message.
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
>
--
Mark Wassermann
@: [EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
p: +43.650.6133090
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Alpen-Adria-Universität Klagenfurt
Institut für Geschichte
Klagenfurter Urkundendatenbank
a: Universitätsstrasse 65-67
9020 Klagenfurt
Österreich/Austria
w: http://urkdb.uni-klu.ac.at
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mw-net IT-Solutions
a: Stolzstraße 57
9020 Klagenfurt
Österreich/Austria
w: http://www.klagenfurter.at
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Tho' much is taken, much abides; and tho'
We are not now that strength which in the old days
Moved earth and heaven; that which we are, we are;
One equal-temper of heroic hearts,
Made weak by time and fate, but strong in will
To strive, to seek, to find, and not to yield."
Ulysses by Alfred Tennyson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/