Tuesday, August 12, 2014

Installing MS fonts into Centos for converting DOCX files to PDF using DOCX4J

a)  Install MS TT Fonts using information here:

b)  If you need font mapping you can setup a font.properties file. I copied the one on my Mac, from
.. on my Centos development box .

After installing the MS fonts, it must add a file to the JDK lib as (the path will vary based on whatever JVM you are using):

The reason for renaming fontconfig.properties.src to font.properties, is found here:

Remember to restart any Java app that's running and needs to find the newly installed fonts.