BIRT report custom font not shown -


my birt-eclipse 4.6.0 editor displays custom fonts correctly. i'm trying understand why custom fonts displayed while other not (falling standard) when report generated pdf (or other format) on birt runtime 4.4.2 server.

i'm registering custom fonts using below method when server starts:

com.lowagie.text.fontfactory.register("/font/path") 

same problem happens when click run -> view report -> pdf in eclipse-editor. example avenirnextltpro-mediumcn.otf displayed, avenirltstd-medium.otf not. same happens *.ttf fonts - displayed correctly, others not. visible in birt-eclipse editor.

editor , runtime server running on same machine - ubuntu 16.04, fonts copied /usr/share/fonts , registered fc-cache -fv command.

why fonts not visible in pdf?

could not find exact cause of problem, think somehow related font naming.
solution worked me:

com.lowagie.text.fontfactory.register(string path, string alias) 

there "register" method accepts second parameter - font alias. in case, second parameter "avenir lt std". took title birt-eclipse editor's font drop-down list.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -