HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › Deployment / Configuration issues › PD4ML cannot access Times New Roman Font
- This topic has 1 reply, 2 voices, and was last updated Sep 06, 2017
11:13:18 by Anonymous.
-
AuthorPosts
-
August 29, 2017 at 22:15#27163
Hi,
We are facing a very strange behavior with PD4ML and JBOSS App server in our production environment. We are using custom fonts embedded within a jar file which is part of the app war deployable.
We have configured the below fonts in the pd4fonts.properties which is called by the java class using pd4ml.useTTF(“java:defaultfonts”, true);
Arial=arial.ttf
Arial Bold=arialbd.ttf
Arial Bold Italic=arialbi.ttf
Arial Italic=ariali.ttf
Courier New=cour.ttf
Courier New Bold=courbd.ttf
Courier New Bold Italic=courbi.ttf
Courier New Italic=couri.ttf
Times New Roman=times.ttf
Times New Roman Bold=timesbd.ttf
Times New Roman Bold Italic=timesbi.ttf
Times New Roman Italic=timesi.ttf
Calibri Bold=calibribd.ttf
Calibri=calibri.ttf
Calibri Italic=Calibrii.ttf
MingLiU=mingliu.ttc_0
Gill Sans=GillSansMT.ttf
Gill Sans Bold=GillSansMTBold.ttf
Gill Sans Bold Italic=GillSansMTBoldItalic.ttf
Gill Sans Italic=GillSansMTItalic.ttf
Gill Sans Light=GillSansMTLight.ttf
Gill Sans Semi Bold=GillSans-SemiBold.ttf
Gill Sans Condensed=GillSansMT-condensed.ttf
AdobeSongStd=AdobeSongStd.ttf
SharpSong=SharpSong.ttfThe issue is that we are seeing, in Production the fonts in the PDF generated are switching to AdobeSongStd.ttf instead of times.ttf. Once we restart the jboss by clearing the cache files (tmp and work folders in unix) the times.ttf is being used again which is the expected fonts. After a few random days, the fonts are going back to AdobeSongStd. Every time the jboss is restarted the fonts switch back to times.ttf.
I can see that Jboss is extracting these jar files having the fonts on to the tmp cache folder and I am assuming it then uses the fonts from there. However we are not able to understand why jboss/pd4ml is not using the times.ttf font and why it is using AdobeSongStd.ttf file instead. Also we do not know why the times.ttf is fetched properly when we do a jboss restart after clearing cache.
Can anyone please help me on this?
September 6, 2017 at 11:13#30093Hi Team,
Can you please help us on this issue? I have been looking at the issue posted at the below link and our issue somewhat resembles the one posted here.
But we still cannot figure out why restarting the JBOSS server brings the fonts back to Times New Roman.
html-css-to-pdf-rendering-issues-f3/issue-with-font-family-on-chinese-characters-t921.html
-
AuthorPosts
The forum ‘Deployment / Configuration issues’ is closed to new topics and replies.