doc to pdf conversion with Libre Java API Font issue

While converting the docx to pdf I am facing formatting issue when any custom font is available in the docx. I am using LibreOffice_5.4.0_Linux_x86-64_rpm.tar.gz in Linux. could you please let me know how could I used custom font like adobe etc.