Strange border around letters in headings

30 views
Skip to first unread message

Jens Rutschmann

unread,
Jan 24, 2014, 10:11:44 AM1/24/14
to flying-s...@googlegroups.com
Hi all,

I've run into a strange issue with a border rendered around the letters
of headings when the respective PDF page contains a div with a dashed
border. The border is not rendered around the heading box element but
actually around each character's outline.

This only happens when using a custom font.

I've attached a PDF file showing this as well as a zip file containing
the demo HTML and the font file (LiberationSans).

Has anyone ever experienced this?


Thanks,
Jens
font-border-issue.zip
test.pdf

Peter Brant

unread,
Jan 24, 2014, 10:25:38 AM1/24/14
to flying-s...@googlegroups.com
Wow.  Pretty weird.  It might be an iText bug.  What version of iText are you using?  FS isn't doing anything different when it's a custom font.

Pete




--
You received this message because you are subscribed to the Google Groups "Flying Saucer Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flying-saucer-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Jens Rutschmann

unread,
Jan 24, 2014, 12:16:43 PM1/24/14
to flying-s...@googlegroups.com
Hi,

I'm using itext 2.1.7 so far due to licensing.

Now that you mentioned it I've also tried the itext5 branch with itext
5.3.0 and it gives the same result.

Jens
>> email to flying-saucer-...@googlegroups.com.

Peter Brant

unread,
Jan 27, 2014, 8:31:16 AM1/27/14
to flying-s...@googlegroups.com
If I had to guess, I'd still lean towards an iText bug.  From the display, it's like iText is drawing the characters "manually" (i.e. as a path instead of characters), but then not closing the path and then the border is adding to it vs. creating a new path.  This isn't an entirely satisfactory explanation though either.  Either way, you'd have to dig into the page's content stream to see what's really going on.

Pete



For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Flying Saucer Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flying-saucer-dev+unsubscribe@googlegroups.com.

Jens Rutschmann

unread,
Jan 30, 2014, 4:29:08 AM1/30/14
to flying-s...@googlegroups.com
Thanks for your input Pete.

I'll try to look into this later.
>>>> email to flying-saucer-...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>>
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Flying Saucer Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to flying-saucer-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages