The reporting engine replaces placeholders with dynamically generated text. The template in RTF contains font definitions which will be replaced as well. This is usually not a problem if there is some text before and after the replaced value. But if you want to use a specific font only for the placeholder, it might be a problem.

To solve this, simply define the font for the placeholder:

[MACHINE_NAME(FONT=Wingdings)] 

The test code is simple:

Bean bean = new Bean();
bean.put("PEACE", "A"); 
 
BeanNode node = new BeanNode(bean);
 
RtfWorker w = new RtfWorker();
w.loadDocument(getTemplateInputStream("fontvalue.rtf"));
w.fillInData(node);
w.saveDocument(new FileOutputStream(getTempOutputFile("result_fontvalue.rtf")));

The result RTF document will show you the peace fingers!