[ 
https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562326#action_12562326
 ] 

Radoslav Kolev commented on OFBIZ-1110:
---------------------------------------

Adrian, I have already looked at these files.

In CommonScreens.xml I have added this action

  <set field="defaultFontFamily" value="DejaVuSans"/>

to the definitions of the FoReportDecorator and FoDecorator screens. There is 
no GlobalFoDecorator screen in my version of  CommonScreens.xml (updated from 
svn yesterday).

I suppose this should trigger the following conditional 

<#if defaultFontFamily?has_content>font-family="${defaultFontFamily}"</#if>

in the beggining of reportTemplate.fo.ftl and simple.fo.ftl.

Even after these changes I still don't see properly the non-latin characters in 
PDFs.  I tried replacing the conditionals in reportTemplate.fo.ftl and 
simple.fo.ftl with a hardcoded value of font-family="DejaVuSans" but still no 
much difference.

Any ideas?

Thanks,
Rado



> Default FOP Font
> ----------------
>
>                 Key: OFBIZ-1110
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1110
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Krzysztof Podejma
>             Fix For: SVN trunk
>
>         Attachments: widget.diff
>
>
> current ofbiz(OOTB) reporting does not support multilingual users. When you 
> use non-english locale you get '#" characters.
> additionally it is hard to track all changes in reports so here default font 
> comes up. 
> it would be great to add fop.xcon file to trunk with UNICODE font that could 
> print any characters in any languages.
> I've made up two another solutions 1) is a property in general.properties 
> that store default font
> 2) to associate font-family name  with locale as property (in property file) 
> and use this font-family to print reports in user language properly.
> with second solution users can define what fonts they have and want to use

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to