You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Krzysztof Podejma (JIRA)" <ji...@apache.org> on 2007/06/28 20:42:04 UTC

[jira] Created: (OFBIZ-1110) Default FOP Font

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


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.


Re: [jira] Closed: (OFBIZ-1110) Default FOP Font

Posted by guo weizhan <gu...@gmail.com>.
Hi Jacpopo,

I'm sure I have placed all of them in the webapp/config, and I have
send the Chinese font and font metrics files to your email.

Please let me know if there is any problem.

Thanks.

在 07-8-11,Jacopo Cappellato<ti...@sastau.it> 写道:
> I Guo,
>
> and thanks for your feedback. Are you sure you have moved all your font
> files from widget/conf to webapp/conf? I really don't think that the
> error can be caused by the changed folder... but maybe there is
> something else (that I did?) that broke it and I'd like to fix it with
> your help.
> Could you also please send me your Chinese font and font metrics files
> (you can send them directly to my mail address because the attachments
> are not allowed in this list)? I would like to try to print Chinese
> characters with your font setup.
>
> Thanks,
>
> Jacopo
>
>
> guo weizhan wrote:
> > ooops, I didn't know you update the java files, but after I updatedand rebuilt all, I placed themetrics file in the webapp/config, I got those error"javax.xml.transform.TransformerException: java.lang.RuntimeException:Cannot load font: failed to create Source from metrics filettfSimHei.xml"  in pdf
> > the console  info::260:WARN ] Font 'chineseFont,normal,700' not found. Substituting with 'chineseFont,normal,400'.2007-08-11 22:47:30,375 (http-0.0.0.0-8443-Processor4) [      FOURIResolver.java:158:ERROR] Error with opening URL 'ttfSimHei.xml': Djava.net.UnknownHostException: D        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)        at java.net.Socket.connect(Socket.java:507)        at java.net.Socket.connect(Socket.java:457)        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)        at sun.net.NetworkClient.openServer(NetworkClient.java:118)        at sun.net.ftp.FtpClient.openServer(FtpClient.java:488)        at sun.net.ftp.FtpClient.openServer(FtpClient.java:475)        at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:270)        at org.apache.fop.apps.FOURIResolver.resolve(FOURIResolver.java:152)        at org.apache.fop.apps.FopFactory.resolveURI(FopFactory.java:638)        at org.apache.fop.apps.FOUserAgent.
> resolveURI(FOUserAgent.java:421)        at org.apache.fop.render.DefaultFontResolver.resolve(DefaultFontResolver.java:44)        at org.apache.fop.fonts.LazyFont.load(LazyFont.java:72)        at org.apache.fop.fonts.LazyFont.getAscender(LazyFont.java:198)        at org.apache.fop.fonts.Font.getAscender(Font.java:67)        at org.apache.fop.layoutmgr.BlockLayoutManager.initialize(BlockLayoutManager.java:84)        at org.apache.fop.layoutmgr.AbstractLayoutManager.getChildLM(AbstractLayoutManager.java:117)        at org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements(TableCellLayoutManager.java:160)        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.createElementsForRowGroup(TableContentLayoutManager.java:480)        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRowIterator(TableContentLayoutManager.java:243)        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements(TableConte
> ntLayoutManager.java:147)        at org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:229)        at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:106)        at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextKnuthElements(PageSequenceLayoutManager.java:272)        at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:554)        at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextBlockList(PageSequenceLayoutManager.java:264)        at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:301)        at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:263)        at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:157)        at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:385)        at org.apache.fop.fo.pa
> gination.PageSequence.endOfNode(PageSequence.java:148)        at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)        at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:262)        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)        at org.apache.xerces.parsers.AbstractSAXParser.parse(U
> nknown Source)        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:557)        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:638)        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:279)        at org.ofbiz.widget.screen.ScreenFopViewHandler.render(ScreenFopViewHandler.java:118)        at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:641)        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:429)        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:193)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)        at org.apache.catalina.core.ApplicationFilte
> rChain.doFilter(ApplicationFilterChain.java:188)        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:542)        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)        at org.apache.coyo
> te.http11.Http11Processor.process(Http11Processor.java:870)        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)        at java.lang.Thread.run(Thread.java:595)错误:"Cannot load font: failed to create Source from metrics file ttfSimHei.xml"
> > 2007/8/11, Jacopo Cappellato <ti...@sastau.it>:> Hi Guo,>> are you sure to have updated and rebuilt all the classes involved in the> change?>> Jacopo>> guo weizhan wrote:> > It's interesting, It didn't work if placed in the webapp/config.> > At first glance, I also want to place it in the webapp/config> >> >>
>
>

Re: [jira] Closed: (OFBIZ-1110) Default FOP Font

Posted by guo weizhan <gu...@gmail.com>.
If we just for test, I think it's ok, but we cann't upload this file
to CVS utill we figure out it's open or not.

2007/8/12, Shi Yusen <sh...@langhua.cn>:
> Please be aware of the files which may contain Chinese fonts. AFAIK, it
> may not be in open source license. As you see, there are over 10000
> Chinese charactors in a Chinese font file. That makes the font still
> under the copyright protection.
>
> Please use the font files comes with your Linux. Or a document of how to
> is enough.
>
> The font legal problem is same for Japanese I guess.
>
> Regards,
>
> Shi Yusen/Beijing Langhua Ltd.
>
> > I Guo,
> >
> > and thanks for your feedback. Are you sure you have moved all your font
> > files from widget/conf to webapp/conf? I really don't think that the
> > error can be caused by the changed folder... but maybe there is
> > something else (that I did?) that broke it and I'd like to fix it with
> > your help.
> > Could you also please send me your Chinese font and font metrics files
> > (you can send them directly to my mail address because the attachments
> > are not allowed in this list)? I would like to try to print Chinese
> > characters with your font setup.
> >
> > Thanks,
> >
> > Jacopo
> >
> >
> > guo weizhan wrote:
> > > ooops, I didn't know you update the java files, but after I updatedand rebuilt all, I placed themetrics file in the webapp/config, I got those error"javax.xml.transform.TransformerException: java.lang.RuntimeException:Cannot load font: failed to create Source from metrics filettfSimHei.xml"  in pdf
> > > the console  info::260:WARN ] Font 'chineseFont,normal,700' not found. Substituting with 'chineseFont,normal,400'.2007-08-11 22:47:30,375 (http-0.0.0.0-8443-Processor4) [      FOURIResolver.java:158:ERROR] Error with opening URL 'ttfSimHei.xml': Djava.net.UnknownHostException: D        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)        at java.net.Socket.connect(Socket.java:507)        at java.net.Socket.connect(Socket.java:457)        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)        at sun.net.NetworkClient.openServer(NetworkClient.java:118)        at sun.net.ftp.FtpClient.openServer(FtpClient.java:488)        at sun.net.ftp.FtpClient.openServer(FtpClient.java:475)        at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:270)        at org.apache.fop.apps.FOURIResolver.resolve(FOURIResolver.java:152)        at org.apache.fop.apps.FopFactory.resolveURI(FopFactory.java:638)        at org.apache.fop.apps.FOUserAgen
>  t.
> > resolveURI(FOUserAgent.java:421)        at org.apache.fop.render.DefaultFontResolver.resolve(DefaultFontResolver.java:44)        at org.apache.fop.fonts.LazyFont.load(LazyFont.java:72)        at org.apache.fop.fonts.LazyFont.getAscender(LazyFont.java:198)        at org.apache.fop.fonts.Font.getAscender(Font.java:67)        at org.apache.fop.layoutmgr.BlockLayoutManager.initialize(BlockLayoutManager.java:84)        at org.apache.fop.layoutmgr.AbstractLayoutManager.getChildLM(AbstractLayoutManager.java:117)        at org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements(TableCellLayoutManager.java:160)        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.createElementsForRowGroup(TableContentLayoutManager.java:480)        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRowIterator(TableContentLayoutManager.java:243)        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements(TableCon
>  te
> > ntLayoutManager.java:147)        at org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:229)        at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:106)        at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextKnuthElements(PageSequenceLayoutManager.java:272)        at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:554)        at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextBlockList(PageSequenceLayoutManager.java:264)        at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:301)        at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:263)        at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:157)        at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:385)        at org.apache.fop.fo.
>  pa
> > gination.PageSequence.endOfNode(PageSequence.java:148)        at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)        at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:262)        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)        at org.apache.xerces.parsers.AbstractSAXParser.parse
>  (U
> > nknown Source)        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:557)        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:638)        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:279)        at org.ofbiz.widget.screen.ScreenFopViewHandler.render(ScreenFopViewHandler.java:118)        at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:641)        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:429)        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:193)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)        at org.apache.catalina.core.ApplicationFil
>  te
> > rChain.doFilter(ApplicationFilterChain.java:188)        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:542)        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)        at org.apache.co
>  yo
> > te.http11.Http11Processor.process(Http11Processor.java:870)        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)        at java.lang.Thread.run(Thread.java:595)错误:"Cannot load font: failed to create Source from metrics file ttfSimHei.xml"
> > > 2007/8/11, Jacopo Cappellato <ti...@sastau.it>:> Hi Guo,>> are you sure to have updated and rebuilt all the classes involved in the> change?>> Jacopo>> guo weizhan wrote:> > It's interesting, It didn't work if placed in the webapp/config.> > At first glance, I also want to place it in the webapp/config> >> >>
> >
>
>
>

Re: [jira] Closed: (OFBIZ-1110) Default FOP Font

Posted by guo weizhan <gu...@gmail.com>.
Congratulation, it's works now

Thank you!

2007/8/12, Jacopo Cappellato <ti...@sastau.it>:
> Guo, all,
>
> I think that I have fixed the error you are reporting in rev. 565010
>
> The path to the font folder was wrong (I introduced the bug in my last
> commit) because it was missing a /.
>
> Please, let me know if this resolves your last error.
>
> Thanks,
>
> Jacopo
>
> Jacopo Cappellato wrote:
> > Hi Shi,
> >
> > of course I will just use the fonts for my local tests and I will not
> > include them in the trunk.
> >
> > Thanks,
> >
> > Jacopo
>
>

Re: [jira] Closed: (OFBIZ-1110) Default FOP Font

Posted by Jacopo Cappellato <ti...@sastau.it>.
Guo, all,

I think that I have fixed the error you are reporting in rev. 565010

The path to the font folder was wrong (I introduced the bug in my last 
commit) because it was missing a /.

Please, let me know if this resolves your last error.

Thanks,

Jacopo

Jacopo Cappellato wrote:
> Hi Shi,
> 
> of course I will just use the fonts for my local tests and I will not 
> include them in the trunk.
> 
> Thanks,
> 
> Jacopo


Re: [jira] Closed: (OFBIZ-1110) Default FOP Font

Posted by Jacopo Cappellato <ti...@sastau.it>.
Hi Shi,

of course I will just use the fonts for my local tests and I will not 
include them in the trunk.

Thanks,

Jacopo

Shi Yusen wrote:
> Please be aware of the files which may contain Chinese fonts. AFAIK, it
> may not be in open source license. As you see, there are over 10000
> Chinese charactors in a Chinese font file. That makes the font still
> under the copyright protection.
> 
> Please use the font files comes with your Linux. Or a document of how to
> is enough.
> 
> The font legal problem is same for Japanese I guess.
> 
> Regards,
> 
> Shi Yusen/Beijing Langhua Ltd.
> 
>> I Guo,
>>
>> and thanks for your feedback. Are you sure you have moved all your font
>> files from widget/conf to webapp/conf? I really don't think that the
>> error can be caused by the changed folder... but maybe there is
>> something else (that I did?) that broke it and I'd like to fix it with
>> your help.
>> Could you also please send me your Chinese font and font metrics files
>> (you can send them directly to my mail address because the attachments
>> are not allowed in this list)? I would like to try to print Chinese
>> characters with your font setup.
>>
>> Thanks,
>>
>> Jacopo
>>
>>
>> guo weizhan wrote:
>>> ooops, I didn't know you update the java files, but after I updatedand rebuilt all, I placed themetrics file in the webapp/config, I got those error"javax.xml.transform.TransformerException: java.lang.RuntimeException:Cannot load font: failed to create Source from metrics filettfSimHei.xml"  in pdf
>>> the console  info::260:WARN ] Font 'chineseFont,normal,700' not found. Substituting with 'chineseFont,normal,400'.2007-08-11 22:47:30,375 (http-0.0.0.0-8443-Processor4) [      FOURIResolver.java:158:ERROR] Error with opening URL 'ttfSimHei.xml': Djava.net.UnknownHostException: D        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)        at java.net.Socket.connect(Socket.java:507)        at java.net.Socket.connect(Socket.java:457)        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)        at sun.net.NetworkClient.openServer(NetworkClient.java:118)        at sun.net.ftp.FtpClient.openServer(FtpClient.java:488)        at sun.net.ftp.FtpClient.openServer(FtpClient.java:475)        at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:270)        at org.apache.fop.apps.FOURIResolver.resolve(FOURIResolver.java:152)        at org.apache.fop.apps.FopFactory.resolveURI(FopFactory.java:638)        at org.apache.fop.apps.FOUserAge
n
>  t.
>> resolveURI(FOUserAgent.java:421)        at org.apache.fop.render.DefaultFontResolver.resolve(DefaultFontResolver.java:44)        at org.apache.fop.fonts.LazyFont.load(LazyFont.java:72)        at org.apache.fop.fonts.LazyFont.getAscender(LazyFont.java:198)        at org.apache.fop.fonts.Font.getAscender(Font.java:67)        at org.apache.fop.layoutmgr.BlockLayoutManager.initialize(BlockLayoutManager.java:84)        at org.apache.fop.layoutmgr.AbstractLayoutManager.getChildLM(AbstractLayoutManager.java:117)        at org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements(TableCellLayoutManager.java:160)        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.createElementsForRowGroup(TableContentLayoutManager.java:480)        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRowIterator(TableContentLayoutManager.java:243)        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements(TableC
on
>  te
>> ntLayoutManager.java:147)        at org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:229)        at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:106)        at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextKnuthElements(PageSequenceLayoutManager.java:272)        at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:554)        at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextBlockList(PageSequenceLayoutManager.java:264)        at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:301)        at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:263)        at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:157)        at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:385)        at org.apache.fop.f
o.
>  pa
>> gination.PageSequence.endOfNode(PageSequence.java:148)        at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)        at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:262)        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)        at org.apache.xerces.parsers.AbstractSAXParser.par
se
>  (U
>> nknown Source)        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:557)        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:638)        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:279)        at org.ofbiz.widget.screen.ScreenFopViewHandler.render(ScreenFopViewHandler.java:118)        at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:641)        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:429)        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:193)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)        at org.apache.catalina.core.ApplicationF
il
>  te
>> rChain.doFilter(ApplicationFilterChain.java:188)        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:542)        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)        at org.apache.
co
>  yo
>> te.http11.Http11Processor.process(Http11Processor.java:870)        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)        at java.lang.Thread.run(Thread.java:595)错误:"Cannot load font: failed to create Source from metrics file ttfSimHei.xml"
>>> 2007/8/11, Jacopo Cappellato <ti...@sastau.it>:> Hi Guo,>> are you sure to have updated and rebuilt all the classes involved in the> change?>> Jacopo>> guo weizhan wrote:> > It's interesting, It didn't work if placed in the webapp/config.> > At first glance, I also want to place it in the webapp/config> >> >>
> 



Re: [jira] Closed: (OFBIZ-1110) Default FOP Font

Posted by Shi Yusen <sh...@langhua.cn>.
Please be aware of the files which may contain Chinese fonts. AFAIK, it
may not be in open source license. As you see, there are over 10000
Chinese charactors in a Chinese font file. That makes the font still
under the copyright protection.

Please use the font files comes with your Linux. Or a document of how to
is enough.

The font legal problem is same for Japanese I guess.

Regards,

Shi Yusen/Beijing Langhua Ltd.

> I Guo,
> 
> and thanks for your feedback. Are you sure you have moved all your font
> files from widget/conf to webapp/conf? I really don't think that the
> error can be caused by the changed folder... but maybe there is
> something else (that I did?) that broke it and I'd like to fix it with
> your help.
> Could you also please send me your Chinese font and font metrics files
> (you can send them directly to my mail address because the attachments
> are not allowed in this list)? I would like to try to print Chinese
> characters with your font setup.
> 
> Thanks,
> 
> Jacopo
> 
> 
> guo weizhan wrote:
> > ooops, I didn't know you update the java files, but after I updatedand rebuilt all, I placed themetrics file in the webapp/config, I got those error"javax.xml.transform.TransformerException: java.lang.RuntimeException:Cannot load font: failed to create Source from metrics filettfSimHei.xml"  in pdf
> > the console  info::260:WARN ] Font 'chineseFont,normal,700' not found. Substituting with 'chineseFont,normal,400'.2007-08-11 22:47:30,375 (http-0.0.0.0-8443-Processor4) [      FOURIResolver.java:158:ERROR] Error with opening URL 'ttfSimHei.xml': Djava.net.UnknownHostException: D        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)        at java.net.Socket.connect(Socket.java:507)        at java.net.Socket.connect(Socket.java:457)        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)        at sun.net.NetworkClient.openServer(NetworkClient.java:118)        at sun.net.ftp.FtpClient.openServer(FtpClient.java:488)        at sun.net.ftp.FtpClient.openServer(FtpClient.java:475)        at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:270)        at org.apache.fop.apps.FOURIResolver.resolve(FOURIResolver.java:152)        at org.apache.fop.apps.FopFactory.resolveURI(FopFactory.java:638)        at org.apache.fop.apps.FOUserAgen
 t.
> resolveURI(FOUserAgent.java:421)        at org.apache.fop.render.DefaultFontResolver.resolve(DefaultFontResolver.java:44)        at org.apache.fop.fonts.LazyFont.load(LazyFont.java:72)        at org.apache.fop.fonts.LazyFont.getAscender(LazyFont.java:198)        at org.apache.fop.fonts.Font.getAscender(Font.java:67)        at org.apache.fop.layoutmgr.BlockLayoutManager.initialize(BlockLayoutManager.java:84)        at org.apache.fop.layoutmgr.AbstractLayoutManager.getChildLM(AbstractLayoutManager.java:117)        at org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements(TableCellLayoutManager.java:160)        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.createElementsForRowGroup(TableContentLayoutManager.java:480)        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRowIterator(TableContentLayoutManager.java:243)        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements(TableCon
 te
> ntLayoutManager.java:147)        at org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:229)        at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:106)        at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextKnuthElements(PageSequenceLayoutManager.java:272)        at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:554)        at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextBlockList(PageSequenceLayoutManager.java:264)        at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:301)        at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:263)        at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:157)        at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:385)        at org.apache.fop.fo.
 pa
> gination.PageSequence.endOfNode(PageSequence.java:148)        at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)        at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:262)        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)        at org.apache.xerces.parsers.AbstractSAXParser.parse
 (U
> nknown Source)        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:557)        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:638)        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:279)        at org.ofbiz.widget.screen.ScreenFopViewHandler.render(ScreenFopViewHandler.java:118)        at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:641)        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:429)        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:193)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)        at org.apache.catalina.core.ApplicationFil
 te
> rChain.doFilter(ApplicationFilterChain.java:188)        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:542)        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)        at org.apache.co
 yo
> te.http11.Http11Processor.process(Http11Processor.java:870)        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)        at java.lang.Thread.run(Thread.java:595)错误:"Cannot load font: failed to create Source from metrics file ttfSimHei.xml"
> > 2007/8/11, Jacopo Cappellato <ti...@sastau.it>:> Hi Guo,>> are you sure to have updated and rebuilt all the classes involved in the> change?>> Jacopo>> guo weizhan wrote:> > It's interesting, It didn't work if placed in the webapp/config.> > At first glance, I also want to place it in the webapp/config> >> >>
> 



Re: [jira] Closed: (OFBIZ-1110) Default FOP Font

Posted by Jacopo Cappellato <ti...@sastau.it>.
I Guo,

and thanks for your feedback. Are you sure you have moved all your font
files from widget/conf to webapp/conf? I really don't think that the
error can be caused by the changed folder... but maybe there is
something else (that I did?) that broke it and I'd like to fix it with
your help.
Could you also please send me your Chinese font and font metrics files
(you can send them directly to my mail address because the attachments
are not allowed in this list)? I would like to try to print Chinese
characters with your font setup.

Thanks,

Jacopo


guo weizhan wrote:
> ooops, I didn't know you update the java files, but after I updatedand rebuilt all, I placed themetrics file in the webapp/config, I got those error"javax.xml.transform.TransformerException: java.lang.RuntimeException:Cannot load font: failed to create Source from metrics filettfSimHei.xml"  in pdf
> the console  info::260:WARN ] Font 'chineseFont,normal,700' not found. Substituting with 'chineseFont,normal,400'.2007-08-11 22:47:30,375 (http-0.0.0.0-8443-Processor4) [      FOURIResolver.java:158:ERROR] Error with opening URL 'ttfSimHei.xml': Djava.net.UnknownHostException: D        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)        at java.net.Socket.connect(Socket.java:507)        at java.net.Socket.connect(Socket.java:457)        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)        at sun.net.NetworkClient.openServer(NetworkClient.java:118)        at sun.net.ftp.FtpClient.openServer(FtpClient.java:488)        at sun.net.ftp.FtpClient.openServer(FtpClient.java:475)        at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:270)        at org.apache.fop.apps.FOURIResolver.resolve(FOURIResolver.java:152)        at org.apache.fop.apps.FopFactory.resolveURI(FopFactory.java:638)        at org.apache.fop.apps.FOUserAgent.
resolveURI(FOUserAgent.java:421)        at org.apache.fop.render.DefaultFontResolver.resolve(DefaultFontResolver.java:44)        at org.apache.fop.fonts.LazyFont.load(LazyFont.java:72)        at org.apache.fop.fonts.LazyFont.getAscender(LazyFont.java:198)        at org.apache.fop.fonts.Font.getAscender(Font.java:67)        at org.apache.fop.layoutmgr.BlockLayoutManager.initialize(BlockLayoutManager.java:84)        at org.apache.fop.layoutmgr.AbstractLayoutManager.getChildLM(AbstractLayoutManager.java:117)        at org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements(TableCellLayoutManager.java:160)        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.createElementsForRowGroup(TableContentLayoutManager.java:480)        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRowIterator(TableContentLayoutManager.java:243)        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements(TableConte
ntLayoutManager.java:147)        at org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:229)        at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:106)        at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextKnuthElements(PageSequenceLayoutManager.java:272)        at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:554)        at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextBlockList(PageSequenceLayoutManager.java:264)        at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:301)        at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:263)        at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:157)        at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:385)        at org.apache.fop.fo.pa
gination.PageSequence.endOfNode(PageSequence.java:148)        at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)        at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:262)        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)        at org.apache.xerces.parsers.AbstractSAXParser.parse(U
nknown Source)        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:557)        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:638)        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:279)        at org.ofbiz.widget.screen.ScreenFopViewHandler.render(ScreenFopViewHandler.java:118)        at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:641)        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:429)        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:193)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)        at org.apache.catalina.core.ApplicationFilte
rChain.doFilter(ApplicationFilterChain.java:188)        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:542)        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)        at org.apache.coyo
te.http11.Http11Processor.process(Http11Processor.java:870)        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)        at java.lang.Thread.run(Thread.java:595)错误:"Cannot load font: failed to create Source from metrics file ttfSimHei.xml"
> 2007/8/11, Jacopo Cappellato <ti...@sastau.it>:> Hi Guo,>> are you sure to have updated and rebuilt all the classes involved in the> change?>> Jacopo>> guo weizhan wrote:> > It's interesting, It didn't work if placed in the webapp/config.> > At first glance, I also want to place it in the webapp/config> >> >>


Re: [jira] Closed: (OFBIZ-1110) Default FOP Font

Posted by guo weizhan <gu...@gmail.com>.
ooops, I didn't know you update the java files, but after I updated
and rebuilt all, I placed the
metrics file in the webapp/config, I got those error
"javax.xml.transform.TransformerException: java.lang.RuntimeException:
Cannot load font: failed to create Source from metrics file
ttfSimHei.xml"  in pdf

the console  info:
:260:WARN ] Font 'chineseFont,normal,700' not found. Substituting with 'chineseF
ont,normal,400'.
2007-08-11 22:47:30,375 (http-0.0.0.0-8443-Processor4) [      FOURIResolver.java
:158:ERROR] Error with opening URL 'ttfSimHei.xml': D
java.net.UnknownHostException: D
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
        at java.net.Socket.connect(Socket.java:507)
        at java.net.Socket.connect(Socket.java:457)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
        at sun.net.NetworkClient.openServer(NetworkClient.java:118)
        at sun.net.ftp.FtpClient.openServer(FtpClient.java:488)
        at sun.net.ftp.FtpClient.openServer(FtpClient.java:475)
        at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.ja
va:270)
        at org.apache.fop.apps.FOURIResolver.resolve(FOURIResolver.java:152)
        at org.apache.fop.apps.FopFactory.resolveURI(FopFactory.java:638)
        at org.apache.fop.apps.FOUserAgent.resolveURI(FOUserAgent.java:421)
        at org.apache.fop.render.DefaultFontResolver.resolve(DefaultFontResolver
.java:44)
        at org.apache.fop.fonts.LazyFont.load(LazyFont.java:72)
        at org.apache.fop.fonts.LazyFont.getAscender(LazyFont.java:198)
        at org.apache.fop.fonts.Font.getAscender(Font.java:67)
        at org.apache.fop.layoutmgr.BlockLayoutManager.initialize(BlockLayoutMan
ager.java:84)
        at org.apache.fop.layoutmgr.AbstractLayoutManager.getChildLM(AbstractLay
outManager.java:117)
        at org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthEle
ments(TableCellLayoutManager.java:160)
        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.createElemen
tsForRowGroup(TableContentLayoutManager.java:480)
        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElem
entsForRowIterator(TableContentLayoutManager.java:243)
        at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuth
Elements(TableContentLayoutManager.java:147)
        at org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElement
s(TableLayoutManager.java:229)
        at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowL
ayoutManager.java:106)
        at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNex
tKnuthElements(PageSequenceLayoutManager.java:272)
        at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBre
aker.java:554)
        at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNex
tBlockList(PageSequenceLayoutManager.java:264)
        at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.jav
a:301)
        at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.jav
a:263)
        at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(Pag
eSequenceLayoutManager.java:157)
        at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.j
ava:385)
        at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java
:148)
        at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilde
r.java:378)
        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)
        at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.endElement
(ToXMLSAXHandler.java:262)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source
)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow
n Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transfor
mIdentity(TransformerImpl.java:557)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transfor
m(TransformerImpl.java:638)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transfor
m(TransformerImpl.java:279)
        at org.ofbiz.widget.screen.ScreenFopViewHandler.render(ScreenFopViewHand
ler.java:118)
        at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.jav
a:641)
        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java
:429)
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:193
)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:24
8)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:210)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:174)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:108)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
542)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:151)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:870)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:685)
        at java.lang.Thread.run(Thread.java:595)
错误:"Cannot load font: failed to create Source from metrics file ttfSimHei.xm
l"

2007/8/11, Jacopo Cappellato <ti...@sastau.it>:
> Hi Guo,
>
> are you sure to have updated and rebuilt all the classes involved in the
> change?
>
> Jacopo
>
> guo weizhan wrote:
> > It's interesting, It didn't work if placed in the webapp/config.
> > At first glance, I also want to place it in the webapp/config
> >
> >
>

Re: [jira] Closed: (OFBIZ-1110) Default FOP Font

Posted by Jacopo Cappellato <ti...@sastau.it>.
Hi Guo,

are you sure to have updated and rebuilt all the classes involved in the 
change?

Jacopo

guo weizhan wrote:
> It's interesting, It didn't work if placed in the webapp/config.
> At first glance, I also want to place it in the webapp/config
> 
> 

Re: [jira] Closed: (OFBIZ-1110) Default FOP Font

Posted by guo weizhan <gu...@gmail.com>.
It's interesting, It didn't work if placed in the webapp/config.
At first glance, I also want to place it in the webapp/config


2007/8/10, Jacopo Cappellato (JIRA) <ji...@apache.org>:
>
>     [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
> Jacopo Cappellato closed OFBIZ-1110.
> ------------------------------------
>
>    Resolution: Fixed
>
> Thaks to all: the fop.xconf file is in rev. 564545
> However the folder for the file is webapp/config and not in widget/config
>
> > 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
> >            Assignee: Jacopo Cappellato
> >             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.
>
>

[jira] Commented: (OFBIZ-1110) Default FOP Font

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12717283#action_12717283 ] 

Jacques Le Roux commented on OFBIZ-1110:
----------------------------------------

Please Khalil, use rather user ML for such questions, see  [here|http://docs.ofbiz.org/x/yAk]

Thanks

Jacques

> 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
>            Assignee: Jacopo Cappellato
>             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.


[jira] Commented: (OFBIZ-1110) Default FOP Font

Posted by "Oleg Andreyev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519049 ] 

Oleg Andreyev commented on OFBIZ-1110:
--------------------------------------

Thanks Jacopo,

But please reopen this issue. Config file is first step only. Now it is on-site and we can go ahead.

> 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
>            Assignee: Jacopo Cappellato
>             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.


[jira] Updated: (OFBIZ-1110) Default FOP Font

Posted by "Khalil Abdo Al-Maasali (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Khalil Abdo Al-Maasali updated OFBIZ-1110:
------------------------------------------

    Comment: was deleted

(was: plz I need ur help i new in OfBiz face problem of the report do not support Arabic lang. i do all steps 1 and 2 in the above but does not  work
who any ideas plz tell me thank advanced.)

> 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
>            Assignee: Jacopo Cappellato
>             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.


[jira] Assigned: (OFBIZ-1110) Default FOP Font

Posted by "Jacopo Cappellato (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacopo Cappellato reassigned OFBIZ-1110:
----------------------------------------

    Assignee: Jacopo Cappellato

> 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
>            Assignee: Jacopo Cappellato
>             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.


[jira] Assigned: (OFBIZ-1110) Default FOP Font

Posted by "Jacopo Cappellato (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacopo Cappellato reassigned OFBIZ-1110:
----------------------------------------

    Assignee:     (was: Jacopo Cappellato)

> 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.


[jira] Commented: (OFBIZ-1110) Default FOP Font

Posted by "Radoslav Kolev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562322#action_12562322 ] 

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

Hello Krzysztof,

and thanks for the fast reply.

Unfortunately, this doesn't fix the problem in all PDFs for me.

For example if I generate an Invoice using 

https://localhost:8443/accounting/control/invoice.pdf?invoiceId=10000

I will still get # instead of non-latin letters.  If I add a font-family="DejaVuSans" attribute in the corresponding fo.ftl template (in this case 'applications/accounting/webapp/accounting/invoice/viewInvoice.fo.ftl') the characters display fine.

It is a similar situation with a lot of other places where PDFs are generated.  Adding the font-family attribute to the respective fo.ftl file fixes the issue. 

Only adding it to the simple.fo.ftl and reportTemplate.fo.ftl (as I read in the description of some other bug) does not fix all places where PDFs are generated in my test install. Do you have any idea is this expected behaviour or not?

Regards,
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.


[jira] Commented: (OFBIZ-1110) Default FOP Font

Posted by "Radoslav Kolev (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (OFBIZ-1110) Default FOP Font

Posted by "Radoslav Kolev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562281#action_12562281 ] 

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

Hello!

Since this issue is still open, I think it is better to post my question here.

I need to generate PDFs with non-latin characters.  Since the additions of the fop.xconf and the DejaVu font collection everything needed is here. After some config tweaking if I edit the corresponding fo.ftl file and change it to use one of the DejaVu fonts it works fine.

What I don't know how to do is set,lets say DejaVuSans, as the default font for all the generated PDFs.  I can make a mass search/replace and add this to all fo.ftl files, but I hope someone can propose a more elegant and clean solution.

May be some template that is inluded in all the fo.ftl files?

Best regards,
Radoslav Kolev

> 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.


[jira] Commented: (OFBIZ-1110) Default FOP Font

Posted by "Adrian Crum (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562318#action_12562318 ] 

Adrian Crum commented on OFBIZ-1110:
------------------------------------

Radoslav,

Take a look at the files in framework/common/webcommon/includes/fo and the GlobalFoDecorator in CommonScreens.xml. They accept a parameter to control the default font.


> 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.


[jira] Commented: (OFBIZ-1110) Default FOP Font

Posted by "Oleg Andreyev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519387 ] 

Oleg Andreyev commented on OFBIZ-1110:
--------------------------------------

Jacopo,

> 3) adding variable to the screen template action and fo.ftl template will allow to configure particular report in a non default way (for example based on > user's settings/locale etc...); if the variables are not set in the screen (the default) then the standard properties from fop.xconf will be applied 

I think this is right way. And I am glad that you become interested in this problem.

> 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
>            Assignee: Jacopo Cappellato
>             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.


[jira] Commented: (OFBIZ-1110) Default FOP Font

Posted by "Krzysztof Podejma (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509226 ] 

Krzysztof Podejma commented on OFBIZ-1110:
------------------------------------------

Additionally this issue should cover cases when reports are printed with different currency.
Currency abbreviations I mean. So when report is in English but uses polish currency, this currency should be printed well.

> 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.


[jira] Commented: (OFBIZ-1110) Default FOP Font

Posted by "Krzysztof Podejma (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562311#action_12562311 ] 

Krzysztof Podejma commented on OFBIZ-1110:
------------------------------------------

You can set font-family in simple.fo.ftl  ie. <fo:page-sequence master-reference="main-page" font-family="Arial">.
In this example all blocks will use Arial font.

Regards
Krzysztof Podejma

> 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.


[jira] Commented: (OFBIZ-1110) Default FOP Font

Posted by "Oleg Andreyev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519281 ] 

Oleg Andreyev commented on OFBIZ-1110:
--------------------------------------

Jacopo, Jacquals,

Really it's doesn't metter reopen this issue or make new one. On other hand Krzysztof is creator of it.

Jacopo, 
I post my previous comment before have a chance to see your next patch. In general I dream about Ofbiz that can print correctly OOTB.
Last time ago I spend a few days to make it working and now this problem isn't mine but new customer's and developer's.
To archive this goal I plan add free truetype fonts and their metrics, make Arial as default font (now it's extremely easy, thanks Jacopo) and move page geometry settings from reports to config. 

I am not in accord with you about placing page geometry in decorator. We have two alternatives as to configure FOP - programmatically or via configuration file. I vote second one.  This is more natural way. And I think this way don't mislead new customers.


> 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
>            Assignee: Jacopo Cappellato
>             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.


[jira] Updated: (OFBIZ-1110) Default FOP Font

Posted by "Oleg Andreyev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Andreyev updated OFBIZ-1110:
---------------------------------

    Attachment: widget.diff

> 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.


[jira] Commented: (OFBIZ-1110) Default FOP Font

Posted by "Jacopo Cappellato (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519199 ] 

Jacopo Cappellato commented on OFBIZ-1110:
------------------------------------------

Oleg,

I'd say to create a new Jira issue (and maybe sub-tasks for it) to keep things cleaner.
It's great to know that you are interested in improving the current features: exactly, what are the next steps that you are planning to work?

In my opinion, in order to add flexibility for other properties (such as page-width and page-height ), we should set them in the "actions" section of the screen decorators for xsl-fo based reports; please, have a look at rev 564554 ( http://svn.apache.org/viewvc?view=rev&revision=564554 ) and how I set there the font-family property: we can do the same for other properies as pageWidth and pageHeight.



> 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
>            Assignee: Jacopo Cappellato
>             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.


[jira] Commented: (OFBIZ-1110) Default FOP Font

Posted by "Oleg Andreyev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509224 ] 

Oleg Andreyev commented on OFBIZ-1110:
--------------------------------------

A few comments to this topic.

I think we have to transfer tags page-width and page-height to configuration file as generally used paper formats differ in various countries. It would be better changing these parameters in one place. Of course this is applied to reports currently printed as Letter, or similar formats.

Inasmuch as class ApacheFopFactory  is using file fop.properties(at least envisage it), what about adding default font face to it instead of general.properties?   

I have attached patch with starting fop.xconf. To commiters. Please, apply it to trunk as starting point for further activity. This variant of the configuration file not impact current functionality.


> 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
>
>
> 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.


[jira] Reopened: (OFBIZ-1110) Default FOP Font

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux reopened OFBIZ-1110:
------------------------------------


Reopened at Krzysztof's demand.

BTW Oleg, my 1st name is not Jacquals (nice too though ;o) but Jacques (it's french)

> 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
>            Assignee: Jacopo Cappellato
>             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.


[jira] Closed: (OFBIZ-1110) Default FOP Font

Posted by "Jacopo Cappellato (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacopo Cappellato closed OFBIZ-1110.
------------------------------------

    Resolution: Fixed

Thaks to all: the fop.xconf file is in rev. 564545
However the folder for the file is webapp/config and not in widget/config

> 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
>            Assignee: Jacopo Cappellato
>             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.


[jira] Commented: (OFBIZ-1110) Default FOP Font

Posted by "Jacopo Cappellato (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519366 ] 

Jacopo Cappellato commented on OFBIZ-1110:
------------------------------------------

Oleg,

I don't think that your plan (configuring fop out-of-the-box to use/embed an open source font able to render a wide range of character sets) is incompatible with mine (adding the ability to pass to the fo.ftl template variable to render non default font families, page geometries etc...).
The two features can be used both:
1) out of the box the default OFBiz reports should be able to work with as many character sets as possible
2) now it's already possible to global change the default properties of all the reports in the fop.xconf file
3) adding variable to the screen template action and fo.ftl template will allow to configure particular report in a non default way (for example based on user's settings/locale etc...); if the variables are not set in the screen (the default) then the standard properties from fop.xconf will be applied



> 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
>            Assignee: Jacopo Cappellato
>             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.


[jira] Issue Comment Edited: (OFBIZ-1110) Default FOP Font

Posted by "Khalil Abdo Al-Maasali (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12717267#action_12717267 ] 

Khalil Abdo Al-Maasali edited comment on OFBIZ-1110 at 6/8/09 7:32 AM:
-----------------------------------------------------------------------

plz I need ur help i new in OfBiz face problem of the report do not support Arabic lang. i do all steps 1 and 2 in the above but does not  work
who any ideas plz tell me thank advanced.

      was (Author: khalil):
    plz I need ur help i new in OfBiz face problem of the report do not support Arabic lang. i do all steps 1 and 2 in the above but does not  works 
who any ideas plz tell me thank advanced.
  
> 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
>            Assignee: Jacopo Cappellato
>             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.


[jira] Commented: (OFBIZ-1110) Default FOP Font

Posted by "Khalil Abdo Al-Maasali (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12717267#action_12717267 ] 

Khalil Abdo Al-Maasali commented on OFBIZ-1110:
-----------------------------------------------

plz I need ur help i new in OfBiz face problem of the report do not support Arabic lang. i do all steps 1 and 2 in the above but does not  works 
who any ideas plz tell me thank advanced.

> 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
>            Assignee: Jacopo Cappellato
>             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.


[jira] Commented: (OFBIZ-1110) Default FOP Font

Posted by "Christian Geisert (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519419 ] 

Christian Geisert commented on OFBIZ-1110:
------------------------------------------

Yes, it should be easy to use non Latin-1 fonts for PDF/Printing.

If we include a custom font (and the generated metrics) the only thing a user would have to do is change the font name in the config (as FOP isn't intelligent enough yet to use only the needed fonts)

The DejaVu fonts (http://dejavu.sourceforge.net/ , see http://issues.apache.org/bugzilla/show_bug.cgi?id=40465 for details on license and format) seem to be ok and include Cyrillic, Greek, Arabic and a lot more but no Chinese/CJK fonts - the only issue might be the size of the font.



> 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
>            Assignee: Jacopo Cappellato
>             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.


[jira] Closed: (OFBIZ-1110) Default FOP Font

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-1110.
----------------------------------

    Resolution: Fixed
      Assignee: Jacopo Cappellato

I close this issue since all is ok but the problem Radoslav reported. I propose to create a new issue for that if still needed.

> 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
>            Assignee: Jacopo Cappellato
>             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.


[jira] Commented: (OFBIZ-1110) Default FOP Font

Posted by "David E. Jones (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508903 ] 

David E. Jones commented on OFBIZ-1110:
---------------------------------------

One of the big design goals of OFBiz is to support larger and more varied organizations. In other words, we need ways that things can support different languages, fonts, locales, etc for the same artifacts. So, #2 would be better than #1, and as a general solution some variation of #2 might be better.

> 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
>
>
> 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.


[jira] Commented: (OFBIZ-1110) Default FOP Font

Posted by "Oleg Andreyev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519438 ] 

Oleg Andreyev commented on OFBIZ-1110:
--------------------------------------

The size of the font isn't a problem. FOP embeds in document only used gryphs of TrueType font. 

> 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
>            Assignee: Jacopo Cappellato
>             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.


[jira] Commented: (OFBIZ-1110) Default FOP Font

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519114 ] 

Jacques Le Roux commented on OFBIZ-1110:
----------------------------------------

Should we reopen of create a new issue ?

> 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
>            Assignee: Jacopo Cappellato
>             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.


[jira] Commented: (OFBIZ-1110) Default FOP Font

Posted by "Krzysztof Podejma (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519295 ] 

Krzysztof Podejma commented on OFBIZ-1110:
------------------------------------------

This issue is definitely not completed. I'll post my proposals when I have more time to prepare it. 
Maybe next week.

> 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
>            Assignee: Jacopo Cappellato
>             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.