I forward this to the mailing list so that the fix can go
into the next release. I think Paulo has a newer version of
class FontFactory, but he's on holiday rightnow.

Quoting Wojciech Wisniowski <[EMAIL PROTECTED]>:

> Hello Bruno,
> 
> Thanx for your iText library.
> It is very usefull  for my project (PDF and Quark products catalog
> generated
> from object oriented database).
> But during my work, I have discovered small bug in a FontFactory class,
> 
> public static Font getFont(Properties attributes)
> {
> ..
> boolean embedded = defaultEmbedding;   // set to NOT_EMBEDED as default
> ..
> }
> I use this method to create fonts , passing attributes from XML file.
> The problem arise, when I need to use cp1250 encoding, embeded TrueType
> fonts.
> Instead of polish characters I see empty spaces in my PDF document.
> 
> To fix this bug, I have changed two lines of your code :
> 
> is:
>         if ("false".equals((String)
> attributes.remove(ElementTags.EMBEDDED))) {
>             embedded = false;
> should be:
>         if ("true".equals((String)
> attributes.remove(ElementTags.EMBEDDED)))
> {
>             embedded = true;
> 
> if "embeded" attribute is ommited (or is equals "false") the default
> embedding is used  ( it means : NOT_EMBEDED)
> It works.
> 
> I have kindly request, could you include this this modyfication in next
> relesae of  the  iText library, please?
> 
> Best regards
> Wojtek
> 
> P.S. Sorry for my pure english
> 
> 
> 
> 
> 
> 
> 





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to