I'm using IcePDF library to display PDFs in the web application. Under Java 6 (jdk1.6.0_37 32bits), fonts are displayed incorrectly (are substituted with some default font)
while under Java 7 it looks ok.
I need to use Java 6 in my app, have you got any idea what could be the cause of this behavior?
you can always import the fonts to your library..
You can try with this:
Font font = Font.createFont(Font.TRUETYPE_FONT, fontStream);
Next,
GraphicsEnvironment.getLocalGraphicsEnvironment().registerFont(font);
And,
new Font("nameOfFont", Font.BOLD, 13)
ICEpdf Pro supports OpenType/CFF fonts. If your having problems with font substitution in the Open source version then try installing the following fonts on your server instance. http://www.icesoft.org/wiki/display/PDF/Optimized+Font+Substitution
Below steps may help you.I hope you are getting this in RedHat OS.
Set the Java & JRE to this build and test it.
java version "1.6.0_15" Java(TM) SE Runtime Environment (build 1.6.0_15-b03) Java HotSpot(TM) Server VM (build 14.1-b02, mixed mode)
I anticipate your problem will solve.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With