I'd have a look at 
https://stackoverflow.com/questions/19767205/embedding-font-into-apache-fop too

HTH

Le 03/12/2020 à 15:39, Jacques Le Roux a écrit :
Mmm, not sure it will work though,  I have not them into C:/WINDOWS/FONTS/ and it works here (I was the one who did that some years ago, on Windows too)

Also check fop.properties, maybe the name must be NotoSans "NotoSans" not "Noto 
Sans"

Not sure about all that :) I'd make several different tries...

Jacques

Le 03/12/2020 à 15:34, Jacques Le Roux a écrit :
Hi Georg,

The fonts OFBiz uses are in framework/resources/fonts/NotoSans/ dir. I'd try to 
put them into C:/WINDOWS/FONTS/

HTH

Jacques

Le 03/12/2020 à 13:16, Georg Potthast 2 a écrit :
Hi Jacques,

here are lines from the log. It does not find fonts, I have included only the 
last lines of the messages that it could not find the font.

Here is a screenshot of my fonts directory on Windows:
https://up.picr.de/40004386kt.png
It seems to me the fonts are there but with different names.

Georg

2020-12-03 13:00:56,188 |jsse-nio-8443-exec-4 |FOUserAgent                   |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerif-Regular.ttf. Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported 2020-12-03 13:00:56,210 |jsse-nio-8443-exec-4 |FOUserAgent                   |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifGeorgian-Bold.ttf. Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported 2020-12-03 13:00:56,210 |jsse-nio-8443-exec-4 |FOUserAgent                   |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifGeorgian-Regular.ttf. Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported 2020-12-03 13:00:56,226 |jsse-nio-8443-exec-4 |FOUserAgent                   |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifHebrew-Bold.ttf. Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported 2020-12-03 13:00:56,226 |jsse-nio-8443-exec-4 |FOUserAgent                   |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifHebrew-Regular.ttf. Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported 2020-12-03 13:00:56,241 |jsse-nio-8443-exec-4 |FOUserAgent                   |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifLao-Bold.ttf. Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported 2020-12-03 13:00:56,241 |jsse-nio-8443-exec-4 |FOUserAgent                   |W| Unable to load font file: file:/C:/WINDOWS/FONTS/NotoSerifLao-Regular.ttf. Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported 2020-12-03 13:00:56,527 |jsse-nio-8443-exec-4 |FOUserAgent                   |W| Unable to load font file: file:/C:/WINDOWS/FONTS/ReemKufi-Regular.ttf. Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported 2020-12-03 13:00:56,611 |jsse-nio-8443-exec-4 |FOUserAgent                   |W| Unable to load font file: file:/C:/WINDOWS/FONTS/Scheherazade-Bold.ttf. Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported 2020-12-03 13:00:56,627 |jsse-nio-8443-exec-4 |FOUserAgent                   |W| Unable to load font file: file:/C:/WINDOWS/FONTS/Scheherazade-Regular.ttf. Reason: java.lang.UnsupportedOperationException: coverage set class table not yet supported 2020-12-03 13:00:58,394 |jsse-nio-8443-exec-4 |FOUserAgent                   |W| Unable to load font file: file:/C:/WINDOWS/FONTS/teamviewer9.otf. Reason: java.lang.RuntimeException: The font file:/C:/WINDOWS/FONTS/teamviewer9.otf is not embeddable due to a licensing restriction. 2020-12-03 13:01:01,086 |http-nio-8080-exec-1 |ControlServlet                |T| [[[qrcode(Domain:http://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] 2020-12-03 13:01:01,139 |http-nio-8080-exec-1 |ConfigXMLReader               |I| controller loaded: 0.0s, 50 requests, 34 views in file:/C:/ofbiz/plugins/example/webapp/example/WEB-INF/controller.xml 2020-12-03 13:01:01,170 |http-nio-8080-exec-1 |ConfigXMLReader               |I| controller loaded: 0.0s, 48 requests, 22 views in file:/C:/ofbiz/framework/common/webcommon/WEB-INF/common-controller.xml 2020-12-03 13:01:01,201 |http-nio-8080-exec-1 |ConfigXMLReader               |I| controller loaded: 0.0s, 0 requests, 0 views in file:/C:/ofbiz/framework/common/webcommon/WEB-INF/handlers-controller.xml 2020-12-03 13:01:01,224 |http-nio-8080-exec-1 |ConfigXMLReader               |I| controller loaded: 0.0s, 26 requests, 10 views in file:/C:/ofbiz/framework/common/webcommon/WEB-INF/portal-controller.xml 2020-12-03 13:01:01,270 |http-nio-8080-exec-1 |ConfigXMLReader               |I| controller loaded: 0.0s, 2 requests, 2 views in file:/C:/ofbiz/plugins/example/widget/example/ExampleCompoundWidgets.xml 2020-12-03 13:01:01,270 |http-nio-8080-exec-1 |RequestHandler                |I| Sending redirect to: [https://localhost:8443/example/control/qrcode?message=Example%2011&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20]. Hidden sessionId by default.
2020-12-03 13:01:01,270 |http-nio-8080-exec-1 |ServerHitBin                  
|I| Visit delegatorName=default, ServerHitBin delegatorName=default
2020-12-03 13:01:01,286 |http-nio-8080-exec-1 |ControlServlet                |T| [[[qrcode(Domain:http://localhost)] Request Done- total:0.184,since last([qrcode(Domain:ht...):0.184]]
2020-12-03 13:01:01,386 |jsse-nio-8443-exec-4 |ScreenFopViewHandler          
|E| Unable to transform FO file: org.apache.fop.apps.FOPException
java.lang.reflect.UndeclaredThrowableException; Screen XSL:FO text was:
<?xml version="1.0" encoding="UTF-8"?>



<!-- Begin Template component://example/template/reports/BarCode.fo.ftl -->

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>

   <fo:layout-master-set>
     <fo:simple-page-master master-name="main" page-height="4in" 
page-width="8in"
         margin-top="0.5in" margin-bottom="0.25in" margin-left="0.25in" 
margin-right="0.25in">
       <fo:region-body margin-top="0in"/>
       <fo:region-before extent="0in"/>
       <fo:region-after extent="0in"/>
     </fo:simple-page-master>
   </fo:layout-master-set>

   <fo:page-sequence master-reference="main">
     <fo:flow flow-name="xsl-region-body" font-family="Helvetica">
       <fo:block text-align="center">
         Example 11
       </fo:block>
       <fo:block text-align="center">
         <fo:instream-foreign-object>
           <barcode:barcode xmlns:barcode="http://barcode4j.krysalis.org/ns";
               message="EX11">
             <barcode:code39>
<barcode:height>0.75in</barcode:height>
<barcode:module-width>.375mm</barcode:module-width>
             </barcode:code39>
             <barcode:human-readable>
<barcode:placement>bottom</barcode:placement>
<barcode:font-name>Helvetica</barcode:font-name>
<barcode:font-size>18pt</barcode:font-size>
<barcode:display-start-stop>false</barcode:display-start-stop>
<barcode:display-checksum>false</barcode:display-checksum>
             </barcode:human-readable>
           </barcode:barcode>
         </fo:instream-foreign-object>
       </fo:block>
       <fo:block>
         <fo:leader/>
       </fo:block>
       <fo:block text-align="center">
         <fo:external-graphic
src="/example/control/qrcode;jsessionid=E842AAB15A21B6B90D3B9DFB84B904FB.jvm1?message=Example%2011&amp;format=bmp&amp;encoding=UTF-8&amp;verifyOutput=true&amp;logoImageMaxWidth=20&amp;logoImageMaxHeight=20"
             overflow="hidden" height="1.5in" content-height="scale-to-fit"/>
       </fo:block>
     </fo:flow>
   </fo:page-sequence>
</fo:root>
<!-- End Template component://example/template/reports/BarCode.fo.ftl -->

2020-12-03 13:01:01,402 |jsse-nio-8443-exec-4 |ScreenFactory                 |I| Got 27 screens in 0.016s from: file:/C:/ofbiz/framework/common/widget/CommonScreens.xml 2020-12-03 13:01:01,487 |jsse-nio-8443-exec-4 |ScreenFactory                 |I| Got 26 screens in 0.0s from: file:/C:/ofbiz/themes/common/widget/CommonScreens.xml 2020-12-03 13:01:01,502 |jsse-nio-8443-exec-4 |ScreenFactory                 |I| Got 8 screens in 0.015s from: file:/C:/ofbiz/plugins/example/widget/example/CommonScreens.xml 2020-12-03 13:01:01,518 |jsse-nio-8443-exec-4 |ScreenFactory                 |I| Got 1 screens in 0.016s from: file:/C:/ofbiz/applications/commonext/widget/CommonScreens.xml 2020-12-03 13:01:01,556 |jsse-nio-8443-exec-4 |ServiceDispatcher             |T| Sync service [example/getLastSystemInfoNote] finished in [16] milliseconds
2020-12-03 13:01:01,587 |jsse-nio-8443-exec-4 |ServerHitBin                  
|I| Visit delegatorName=default, ServerHitBin delegatorName=default
2020-12-03 13:01:01,587 |jsse-nio-8443-exec-4 |ControlServlet                |T| [[[ExampleReportPdfBarcode(Domain:https://localhost)] Request Done- total:22.793,since last([ExampleReportPdf...):22.793]] 2020-12-03 13:01:01,921 |jsse-nio-8443-exec-7 |ControlServlet                |T| [[[setLocaleFromBrowser(Domain:https://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |ServiceDispatcher             |T| Sync service [example/setLocaleFromBrowser] finished in [32] milliseconds 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler                |I| Ran Event [service:#setLocaleFromBrowser] from [request], result is [success] 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler                |I| [RequestHandler.doRequest]: Response is a chained request. Hidden sessionId by default. 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler                |I| [RequestHandler]: Chain in place: requestUri=json overrideViewUri=null Hidden sessionId by default. 2020-12-03 13:01:01,953 |jsse-nio-8443-exec-7 |RequestHandler                |I| Ran Event [java:org.apache.ofbiz.common.CommonEvents#jsonResponseFromRequestAttributes] from [request], result is [success]
2020-12-03 13:01:01,968 |jsse-nio-8443-exec-7 |ServerHitBin                  
|I| Visit delegatorName=default, ServerHitBin delegatorName=default
2020-12-03 13:01:01,968 |jsse-nio-8443-exec-7 |ControlServlet                |T| [[[setLocaleFromBrowser(Domain:https://localhost)] Request Done- total:0.047,since last([setLocaleFromBro...):0.047]]


Reply via email to