I wish I was on holidays but it's work unfortunately
and to make it even worse it's freezing cold in
London. The only fix for FontFactory I have is for the
ttc fonts but I'll include this one too.
Best Regards,
Paulo Soares
--- Bruno <[EMAIL PROTECTED]> wrote:
> 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
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-------------------------------------------------------
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