fonts - Croatian letters in Java Program -
i need on croatian letters in program. on website (play framework) can put in names. name saved , pdf file created (with itext) string user typed in shown. want use font lucida bright. problem there non-german letters in names not shown. tried convert unicode (/u----) doesn't work. tried use utf-8 in itext doc:
string name = new string(e.getname().getbytes("utf-8")); // e object name , other infos saved
and in html user can type in name
<meta name="language" content="cr"> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
but doesn't work completely.
in lucida bright (font) Š , š correctly shown , in times new roman Š, Ž, š , ž. how can solve problem?
if want use font in itext's pdf generation have add it
as in
font font = fontfactory.getfont("times-roman"); document.add(new paragraph("times-roman", font));
for more information see itext
Comments
Post a Comment