BIRT fontsConfig.xml font issue

≡放荡痞女 提交于 2019-12-06 10:05:25

There are three ways of handling the problem:

  1. Modify existing fontsConfig.xml ---To do this: follow the guidelines provided in the documentation of fontsConfig file. Also, in order to jar/unjar fontsConfig, follow this post : To Jar/Unjar fontsConfig.xml
  2. Create your new fontsConfig.xml and pick that from a specific location of your choice. ---To do this, you can call the engineConfig's setconfig and pass the full file path.

    config.setFontConfig(fontConfig files URL in file://abc/abc);

  3. Add fonts to your project path and pick that from the code using system properties. --- To do this, call the following.

    FontFactory.registerDirectory( scContext.getRealPath("full folder path") );

This should solve the problem

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!