What steps will reproduce the problem?
1. Make a html page with using these style definition:
p.correct { font-family: Verdana; }
p.wrong { font-family: verdana; }
please note the lowercased "v" in .wrong class
2. Load the proper font (Verdana.ttf) with ITextFontResolver.addFontDirectory
(or ITextFontResolver.addFont())
3. Make a pdf with ITextRenderer.
What is the expected output? What do you see instead?
The <p> with .correct class will be correctly rendered with Verdana font, the
others with .wrong class will fall back to Arial (or whatever it is).
Note that in web browser the font family name is case-insensitive.
What version of the product are you using? On what operating system?
The problem is still present in R8 release.
Please provide any additional information below.
I wrote a patch that use a lowercased version of the font name as key for
_fontFamilies Hashmap in ITextFontResolver.java. In my tests the patch works
without problems.
Original issue reported on code.google.com by i.dasto...@gmail.com on 22 Feb 2011 at 10:59
Original issue reported on code.google.com by
i.dasto...@gmail.com
on 22 Feb 2011 at 10:59Attachments: