xsl-fo and Noto

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

xsl-fo and Noto

Pietro Liuzzo
Dear all,

Can I tell xsl-fo to use Noto font family for my PDF? 
I tried several settings of font-family without success

thanks a lot for any hint!
Pietro




--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: xsl-fo and Noto

Hungerburg
I suppose in your call to xslfo:render() you pass a fop configuration,
where the file embed-url of the font-file is spelled out in full?

Am 2017-07-31 um 20:53 schrieb Pietro Liuzzo:

> Dear all,
>
> Can I tell xsl-fo to use Noto font family for my PDF?
> I tried several settings of font-family without success
>
> thanks a lot for any hint!
> Pietro
>
>
>
>
> --
> Pietro Maria Liuzzo
> cel (DE): +49 (0) 176 61 000 606
> Skype: pietro.liuzzo (Quingentole)
> https://uk.linkedin.com/in/pietroliuzzo
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> Exist-open mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/exist-open
>


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: xsl-fo and Noto

Joe Wicentowski
Hi Pietro,

Have you searched the list archive for help?  You might find threads like this useful: http://markmail.org/message/so43jgratswpu4dz.

Joe

On Mon, Jul 31, 2017 at 5:28 PM, Hungerburg <[hidden email]> wrote:
I suppose in your call to xslfo:render() you pass a fop configuration, where the file embed-url of the font-file is spelled out in full?


Am 2017-07-31 um 20:53 schrieb Pietro Liuzzo:
Dear all,

Can I tell xsl-fo to use Noto font family for my PDF?
I tried several settings of font-family without success

thanks a lot for any hint!
Pietro




--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: xsl-fo and Noto

wsalesky
Pietro, 
I found this useful when I migrated to 3.x:


Hi Winona,
I recall others reporting issues with FOP configuration files and font
directories in the upgrade to eXist 3.x, which itself upgraded to a
new version of FOP.  You might try adopting the technique from the TEI
Publisher app:
  http://gitlab.exist-db.org/tei-publisher/tei-publisher-app/blob/master/modules/config.xqm#L89-93
Joe

This is my PDF configuration file, code based on TEI Publisher code. 
-Winona

 

On Mon, Jul 31, 2017 at 5:37 PM, Joe Wicentowski <[hidden email]> wrote:
Hi Pietro,

Have you searched the list archive for help?  You might find threads like this useful: http://markmail.org/message/so43jgratswpu4dz.

Joe

On Mon, Jul 31, 2017 at 5:28 PM, Hungerburg <[hidden email]> wrote:
I suppose in your call to xslfo:render() you pass a fop configuration, where the file embed-url of the font-file is spelled out in full?


Am 2017-07-31 um 20:53 schrieb Pietro Liuzzo:
Dear all,

Can I tell xsl-fo to use Noto font family for my PDF?
I tried several settings of font-family without success

thanks a lot for any hint!
Pietro




--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: xsl-fo and Noto

Pietro Liuzzo
Dear all, thanks a lot!

I have followed the TEI publisher suggestion and also tested locally and after reloading the app .xar I get this fop using config:get-fonts-dir()

<fop version="1.0">
   
<strict-configuration>true</strict-configuration>
   
<strict-validation>false</strict-validation>
   
<base>./</base>
   
<renderers>
       
<renderer mime="application/pdf">
           
<fonts>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-Regular.ttf">
                   
<font-triplet name="Noto" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-Bold.ttf">
                   
<font-triplet name="Noto" style="normal" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-Italic.ttf">
                   
<font-triplet name="Noto" style="italic" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-BoldItalic.ttf">
                   
<font-triplet name="Noto" style="italic" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSansEthiopic-Regular.ttf">
                   
<font-triplet name="NotoSansEthiopic" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSansEthiopic-Bold.ttf">
                   
<font-triplet name="NotoSansEthiopic" style="normal" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoNaskhArabic-Regular.ttf">
                   
<font-triplet name="NotoNaskhArabic" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoNaskhArabic-Bold.ttf">
                   
<font-triplet name="NotoNaskhArabic" style="normal" weight="700"/>
               
</font>
           
</fonts>
       
</renderer>
   
</renderers>
</fop>

while this is my test xslfo

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
   
<fo:layout-master-set>
       
<fo:simple-page-master master-name="Dillmann" margin-top="10mm" margin-bottom="10mm"
            margin-left="12mm" margin-right="12mm">
           
<fo:region-body margin-bottom="10mm" margin-top="10mm"/>
       
</fo:simple-page-master>
   
</fo:layout-master-set>
   
<fo:page-sequence master-reference="Dillmann">
       
<fo:flow flow-name="xsl-region-body" font-family="Noto">
           
<fo:block page-break-after="always" id="N1.5.2.2" font-family="Noto">
               
<fo:block text-align="center" font-size="20pt" font-family="NotoSansEthiopic"
                    font-style="italic" space-before="2em" space-after="2em"> መረሰ </fo:block>
               
<fo:block font-size="14pt" space-after="16mm" margin-top="28mm"> id.q. <fo:inline
                        font-family="NotoNaskhArabic" writing-mode="rl">مَرَسَ</fo:inline> (
                       
<fo:inline font-family="NotoNaskhArabic" writing-mode="rl"
                        >مَرَشَ</fo:inline>, <fo:inline font-family="NotoNaskhArabic"
                        writing-mode="rl">مَرَثَ</fo:inline>, <fo:inline
                        font-family="NotoNaskhArabic" writing-mode="rl">مَرَدَ</fo:inline> )
                    madefacere , macerare aqua. Hinc
</fo:block>
           
</fo:block>
       
</fo:flow>
   
</fo:page-sequence>
</fo:root>


If I change the path to the files in the fop and test locally as Joe suggested in the previous tread, I get the correct output for what concerns the fonts. Still running the same from exist on my server I get only # and some default font for the latin. I attach the two outputs. 

thank you very much
all best
Pietro




2017-07-31 20:39 GMT-04:00 Winona Salesky <[hidden email]>:
Pietro, 
I found this useful when I migrated to 3.x:


Hi Winona,
I recall others reporting issues with FOP configuration files and font
directories in the upgrade to eXist 3.x, which itself upgraded to a
new version of FOP.  You might try adopting the technique from the TEI
Publisher app:
  http://gitlab.exist-db.org/tei-publisher/tei-publisher-app/blob/master/modules/config.xqm#L89-93
Joe

This is my PDF configuration file, code based on TEI Publisher code. 
-Winona

 

On Mon, Jul 31, 2017 at 5:37 PM, Joe Wicentowski <[hidden email]> wrote:
Hi Pietro,

Have you searched the list archive for help?  You might find threads like this useful: http://markmail.org/message/so43jgratswpu4dz.

Joe

On Mon, Jul 31, 2017 at 5:28 PM, Hungerburg <[hidden email]> wrote:
I suppose in your call to xslfo:render() you pass a fop configuration, where the file embed-url of the font-file is spelled out in full?


Am 2017-07-31 um 20:53 schrieb Pietro Liuzzo:
Dear all,

Can I tell xsl-fo to use Noto font family for my PDF?
I tried several settings of font-family without success

thanks a lot for any hint!
Pietro




--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open




--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open

localresult.pdf (20K) Download Attachment
serverresult.pdf (7K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: xsl-fo and Noto

wsalesky
This could be a permissions issue. I have to run my fo processing script with elevated privileges to access the font files on the server.
(Use setuid )

-Winona


On Tue, Aug 1, 2017 at 7:08 AM, Pietro Liuzzo <[hidden email]> wrote:
Dear all, thanks a lot!

I have followed the TEI publisher suggestion and also tested locally and after reloading the app .xar I get this fop using config:get-fonts-dir()

<fop version="1.0">
   
<strict-configuration>true</strict-configuration>
   
<strict-validation>false</strict-validation>
   
<base>./</base>
   
<renderers>
       
<renderer mime="application/pdf">
           
<fonts>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-Regular.ttf">
                   
<font-triplet name="Noto" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-Bold.ttf">
                   
<font-triplet name="Noto" style="normal" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-Italic.ttf">
                   
<font-triplet name="Noto" style="italic" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-BoldItalic.ttf">
                   
<font-triplet name="Noto" style="italic" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSansEthiopic-Regular.ttf">
                   
<font-triplet name="NotoSansEthiopic" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSansEthiopic-Bold.ttf">
                   
<font-triplet name="NotoSansEthiopic" style="normal" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoNaskhArabic-Regular.ttf">
                   
<font-triplet name="NotoNaskhArabic" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoNaskhArabic-Bold.ttf">
                   
<font-triplet name="NotoNaskhArabic" style="normal" weight="700"/>
               
</font>
           
</fonts>
       
</renderer>
   
</renderers>
</fop>

while this is my test xslfo

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
   
<fo:layout-master-set>
       
<fo:simple-page-master master-name="Dillmann" margin-top="10mm" margin-bottom="10mm"
            margin-left="12mm" margin-right="12mm">
           
<fo:region-body margin-bottom="10mm" margin-top="10mm"/>
       
</fo:simple-page-master>
   
</fo:layout-master-set>
   
<fo:page-sequence master-reference="Dillmann">
       
<fo:flow flow-name="xsl-region-body" font-family="Noto">
           
<fo:block page-break-after="always" id="N1.5.2.2" font-family="Noto">
               
<fo:block text-align="center" font-size="20pt" font-family="NotoSansEthiopic"
                    font-style="italic" space-before="2em" space-after="2em"> መረሰ </fo:block>
               
<fo:block font-size="14pt" space-after="16mm" margin-top="28mm"> id.q. <fo:inline
                        font-family="NotoNaskhArabic" writing-mode="rl">مَرَسَ</fo:inline> (
                       
<fo:inline font-family="NotoNaskhArabic" writing-mode="rl"
                        >مَرَشَ</fo:inline>, <fo:inline font-family="NotoNaskhArabic"
                        writing-mode="rl">مَرَثَ</fo:inline>, <fo:inline
                        font-family="NotoNaskhArabic" writing-mode="rl">مَرَدَ</fo:inline> )
                    madefacere , macerare aqua. Hinc
</fo:block>
           
</fo:block>
       
</fo:flow>
   
</fo:page-sequence>
</fo:root>


If I change the path to the files in the fop and test locally as Joe suggested in the previous tread, I get the correct output for what concerns the fonts. Still running the same from exist on my server I get only # and some default font for the latin. I attach the two outputs. 

thank you very much
all best
Pietro




2017-07-31 20:39 GMT-04:00 Winona Salesky <[hidden email]>:
Pietro, 
I found this useful when I migrated to 3.x:


Hi Winona,
I recall others reporting issues with FOP configuration files and font
directories in the upgrade to eXist 3.x, which itself upgraded to a
new version of FOP.  You might try adopting the technique from the TEI
Publisher app:
  http://gitlab.exist-db.org/tei-publisher/tei-publisher-app/blob/master/modules/config.xqm#L89-93
Joe

This is my PDF configuration file, code based on TEI Publisher code. 
-Winona

 

On Mon, Jul 31, 2017 at 5:37 PM, Joe Wicentowski <[hidden email]> wrote:
Hi Pietro,

Have you searched the list archive for help?  You might find threads like this useful: http://markmail.org/message/so43jgratswpu4dz.

Joe

On Mon, Jul 31, 2017 at 5:28 PM, Hungerburg <[hidden email]> wrote:
I suppose in your call to xslfo:render() you pass a fop configuration, where the file embed-url of the font-file is spelled out in full?


Am 2017-07-31 um 20:53 schrieb Pietro Liuzzo:
Dear all,

Can I tell xsl-fo to use Noto font family for my PDF?
I tried several settings of font-family without success

thanks a lot for any hint!
Pietro




--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open




--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: xsl-fo and Noto

Adam Retter
In reply to this post by Pietro Liuzzo
Hi Pietro,

So I took your config file and your XML input document and placed them into my /tmp folder. I downloaded the Google NotosSans fonts to /Users/aretter/Downloads/noto and updated your config file for my path, my config file looks like:

<fop version="1.0">
   
<strict-configuration>true</strict-configuration>
   
<strict-validation>false</strict-validation>
   
<base>./</base>
   
<renderers>
       
<renderer mime="application/pdf">
           
<fonts>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoSans-Regular.ttf">
                   
<font-triplet name="Noto" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoSans-Bold.ttf">
                   
<font-triplet name="Noto" style="normal" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoSans-Italic.ttf">
                   
<font-triplet name="Noto" style="italic" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoSans-BoldItalic.ttf">
                   
<font-triplet name="Noto" style="italic" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoSansEthiopic-Regular.ttf">
                   
<font-triplet name="NotoSansEthiopic" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoSansEthiopic-Bold.ttf">
                   
<font-triplet name="NotoSansEthiopic" style="normal" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoNaskhArabic-Regular.ttf">
                   
<font-triplet name="NotoNaskhArabic" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoNaskhArabic-Bold.ttf">
                   
<font-triplet name="NotoNaskhArabic" style="normal" weight="700"/>
               
</font>
           
</fonts>
       
</renderer>
   
</renderers>
</fop>


I then executed this XQuery in eXist-db:

declare namespace file = "http://exist-db.org/xquery/file";
declare namespace xslfo = "http://exist-db.org/xquery/xslfo";

file:serialize-binary(
  xslfo:render(
    doc("file:/tmp/input.xml"),
    "application/pdf",
    (),
    doc("file:/tmp/fop-config.xml")
  )
  ,
  "/tmp/out-exist.pdf"
)

I checked the output PDF and it does seem to have been rendered correctly.

Also whilst I was at it, I realised that eXist was loosing the diagnostic output from Apache FOP. I have now fixed that here https://github.com/eXist-db/exist/pull/1507 so that messages from Apache FOP will be placed into $EXIST_HOME/webapp/WEB-INF/logs/exist.log which should hopefully help diagnose any issues.

Let me know how you get on with the above...


On 1 August 2017 at 07:08, Pietro Liuzzo <[hidden email]> wrote:
Dear all, thanks a lot!

I have followed the TEI publisher suggestion and also tested locally and after reloading the app .xar I get this fop using config:get-fonts-dir()

<fop version="1.0">
   
<strict-configuration>true</strict-configuration>
   
<strict-validation>false</strict-validation>
   
<base>./</base>
   
<renderers>
       
<renderer mime="application/pdf">
           
<fonts>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-Regular.ttf">
                   
<font-triplet name="Noto" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-Bold.ttf">
                   
<font-triplet name="Noto" style="normal" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-Italic.ttf">
                   
<font-triplet name="Noto" style="italic" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-BoldItalic.ttf">
                   
<font-triplet name="Noto" style="italic" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSansEthiopic-Regular.ttf">
                   
<font-triplet name="NotoSansEthiopic" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSansEthiopic-Bold.ttf">
                   
<font-triplet name="NotoSansEthiopic" style="normal" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoNaskhArabic-Regular.ttf">
                   
<font-triplet name="NotoNaskhArabic" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoNaskhArabic-Bold.ttf">
                   
<font-triplet name="NotoNaskhArabic" style="normal" weight="700"/>
               
</font>
           
</fonts>
       
</renderer>
   
</renderers>
</fop>

while this is my test xslfo

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
   
<fo:layout-master-set>
       
<fo:simple-page-master master-name="Dillmann" margin-top="10mm" margin-bottom="10mm"
            margin-left="12mm" margin-right="12mm">
           
<fo:region-body margin-bottom="10mm" margin-top="10mm"/>
       
</fo:simple-page-master>
   
</fo:layout-master-set>
   
<fo:page-sequence master-reference="Dillmann">
       
<fo:flow flow-name="xsl-region-body" font-family="Noto">
           
<fo:block page-break-after="always" id="N1.5.2.2" font-family="Noto">
               
<fo:block text-align="center" font-size="20pt" font-family="NotoSansEthiopic"
                    font-style="italic" space-before="2em" space-after="2em"> መረሰ </fo:block>
               
<fo:block font-size="14pt" space-after="16mm" margin-top="28mm"> id.q. <fo:inline
                        font-family="NotoNaskhArabic" writing-mode="rl">مَرَسَ</fo:inline> (
                       
<fo:inline font-family="NotoNaskhArabic" writing-mode="rl"
                        >مَرَشَ</fo:inline>, <fo:inline font-family="NotoNaskhArabic"
                        writing-mode="rl">مَرَثَ</fo:inline>, <fo:inline
                        font-family="NotoNaskhArabic" writing-mode="rl">مَرَدَ</fo:inline> )
                    madefacere , macerare aqua. Hinc
</fo:block>
           
</fo:block>
       
</fo:flow>
   
</fo:page-sequence>
</fo:root>


If I change the path to the files in the fop and test locally as Joe suggested in the previous tread, I get the correct output for what concerns the fonts. Still running the same from exist on my server I get only # and some default font for the latin. I attach the two outputs. 

thank you very much
all best
Pietro




2017-07-31 20:39 GMT-04:00 Winona Salesky <[hidden email]>:
Pietro, 
I found this useful when I migrated to 3.x:


Hi Winona,
I recall others reporting issues with FOP configuration files and font
directories in the upgrade to eXist 3.x, which itself upgraded to a
new version of FOP.  You might try adopting the technique from the TEI
Publisher app:
  http://gitlab.exist-db.org/tei-publisher/tei-publisher-app/blob/master/modules/config.xqm#L89-93
Joe

This is my PDF configuration file, code based on TEI Publisher code. 
-Winona

 

On Mon, Jul 31, 2017 at 5:37 PM, Joe Wicentowski <[hidden email]> wrote:
Hi Pietro,

Have you searched the list archive for help?  You might find threads like this useful: http://markmail.org/message/so43jgratswpu4dz.

Joe

On Mon, Jul 31, 2017 at 5:28 PM, Hungerburg <[hidden email]> wrote:
I suppose in your call to xslfo:render() you pass a fop configuration, where the file embed-url of the font-file is spelled out in full?


Am 2017-07-31 um 20:53 schrieb Pietro Liuzzo:
Dear all,

Can I tell xsl-fo to use Noto font family for my PDF?
I tried several settings of font-family without success

thanks a lot for any hint!
Pietro




--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open




--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open




--
Adam Retter

eXist Core Developer
{ United Kingdom / United States }
[hidden email]

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: xsl-fo and Noto

Pietro Liuzzo
Thanks so much!
I had omitted the third argument in the xslfo:render() ...  

2017-08-01 13:58 GMT-04:00 Adam Retter <[hidden email]>:
Hi Pietro,

So I took your config file and your XML input document and placed them into my /tmp folder. I downloaded the Google NotosSans fonts to /Users/aretter/Downloads/noto and updated your config file for my path, my config file looks like:

<fop version="1.0">
   
<strict-configuration>true</strict-configuration>
   
<strict-validation>false</strict-validation>
   
<base>./</base>
   
<renderers>
       
<renderer mime="application/pdf">
           
<fonts>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoSans-Regular.ttf">
                   
<font-triplet name="Noto" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoSans-Bold.ttf">
                   
<font-triplet name="Noto" style="normal" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoSans-Italic.ttf">
                   
<font-triplet name="Noto" style="italic" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoSans-BoldItalic.ttf">
                   
<font-triplet name="Noto" style="italic" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoSansEthiopic-Regular.ttf">
                   
<font-triplet name="NotoSansEthiopic" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoSansEthiopic-Bold.ttf">
                   
<font-triplet name="NotoSansEthiopic" style="normal" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoNaskhArabic-Regular.ttf">
                   
<font-triplet name="NotoNaskhArabic" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoNaskhArabic-Bold.ttf">
                   
<font-triplet name="NotoNaskhArabic" style="normal" weight="700"/>
               
</font>
           
</fonts>
       
</renderer>
   
</renderers>
</fop>


I then executed this XQuery in eXist-db:

declare namespace file = "http://exist-db.org/xquery/file";
declare namespace xslfo = "http://exist-db.org/xquery/xslfo";

file:serialize-binary(
  xslfo:render(
    doc("file:/tmp/input.xml"),
    "application/pdf",
    (),
    doc("file:/tmp/fop-config.xml")
  )
  ,
  "/tmp/out-exist.pdf"
)

I checked the output PDF and it does seem to have been rendered correctly.

Also whilst I was at it, I realised that eXist was loosing the diagnostic output from Apache FOP. I have now fixed that here https://github.com/eXist-db/exist/pull/1507 so that messages from Apache FOP will be placed into $EXIST_HOME/webapp/WEB-INF/logs/exist.log which should hopefully help diagnose any issues.

Let me know how you get on with the above...


On 1 August 2017 at 07:08, Pietro Liuzzo <[hidden email]> wrote:
Dear all, thanks a lot!

I have followed the TEI publisher suggestion and also tested locally and after reloading the app .xar I get this fop using config:get-fonts-dir()

<fop version="1.0">
   
<strict-configuration>true</strict-configuration>
   
<strict-validation>false</strict-validation>
   
<base>./</base>
   
<renderers>
       
<renderer mime="application/pdf">
           
<fonts>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-Regular.ttf">
                   
<font-triplet name="Noto" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-Bold.ttf">
                   
<font-triplet name="Noto" style="normal" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-Italic.ttf">
                   
<font-triplet name="Noto" style="italic" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-BoldItalic.ttf">
                   
<font-triplet name="Noto" style="italic" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSansEthiopic-Regular.ttf">
                   
<font-triplet name="NotoSansEthiopic" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSansEthiopic-Bold.ttf">
                   
<font-triplet name="NotoSansEthiopic" style="normal" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoNaskhArabic-Regular.ttf">
                   
<font-triplet name="NotoNaskhArabic" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoNaskhArabic-Bold.ttf">
                   
<font-triplet name="NotoNaskhArabic" style="normal" weight="700"/>
               
</font>
           
</fonts>
       
</renderer>
   
</renderers>
</fop>

while this is my test xslfo

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
   
<fo:layout-master-set>
       
<fo:simple-page-master master-name="Dillmann" margin-top="10mm" margin-bottom="10mm"
            margin-left="12mm" margin-right="12mm">
           
<fo:region-body margin-bottom="10mm" margin-top="10mm"/>
       
</fo:simple-page-master>
   
</fo:layout-master-set>
   
<fo:page-sequence master-reference="Dillmann">
       
<fo:flow flow-name="xsl-region-body" font-family="Noto">
           
<fo:block page-break-after="always" id="N1.5.2.2" font-family="Noto">
               
<fo:block text-align="center" font-size="20pt" font-family="NotoSansEthiopic"
                    font-style="italic" space-before="2em" space-after="2em"> መረሰ </fo:block>
               
<fo:block font-size="14pt" space-after="16mm" margin-top="28mm"> id.q. <fo:inline
                        font-family="NotoNaskhArabic" writing-mode="rl">مَرَسَ</fo:inline> (
                       
<fo:inline font-family="NotoNaskhArabic" writing-mode="rl"
                        >مَرَشَ</fo:inline>, <fo:inline font-family="NotoNaskhArabic"
                        writing-mode="rl">مَرَثَ</fo:inline>, <fo:inline
                        font-family="NotoNaskhArabic" writing-mode="rl">مَرَدَ</fo:inline> )
                    madefacere , macerare aqua. Hinc
</fo:block>
           
</fo:block>
       
</fo:flow>
   
</fo:page-sequence>
</fo:root>


If I change the path to the files in the fop and test locally as Joe suggested in the previous tread, I get the correct output for what concerns the fonts. Still running the same from exist on my server I get only # and some default font for the latin. I attach the two outputs. 

thank you very much
all best
Pietro




2017-07-31 20:39 GMT-04:00 Winona Salesky <[hidden email]>:
Pietro, 
I found this useful when I migrated to 3.x:


Hi Winona,
I recall others reporting issues with FOP configuration files and font
directories in the upgrade to eXist 3.x, which itself upgraded to a
new version of FOP.  You might try adopting the technique from the TEI
Publisher app:
  http://gitlab.exist-db.org/tei-publisher/tei-publisher-app/blob/master/modules/config.xqm#L89-93
Joe

This is my PDF configuration file, code based on TEI Publisher code. 
-Winona

 

On Mon, Jul 31, 2017 at 5:37 PM, Joe Wicentowski <[hidden email]> wrote:
Hi Pietro,

Have you searched the list archive for help?  You might find threads like this useful: http://markmail.org/message/so43jgratswpu4dz.

Joe

On Mon, Jul 31, 2017 at 5:28 PM, Hungerburg <[hidden email]> wrote:
I suppose in your call to xslfo:render() you pass a fop configuration, where the file embed-url of the font-file is spelled out in full?


Am 2017-07-31 um 20:53 schrieb Pietro Liuzzo:
Dear all,

Can I tell xsl-fo to use Noto font family for my PDF?
I tried several settings of font-family without success

thanks a lot for any hint!
Pietro




--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open




--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open




--
Adam Retter

eXist Core Developer
{ United Kingdom / United States }
[hidden email]



--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

monex memory status can't response in IE 11.

lin_xd
the memory used still 112, through there are update files . but in chrome , can change with time.




--
此致

  easy

莫愁前路无知己,天下谁人不识君。

在 2017-08-02 03:46:50,"Pietro Liuzzo" <[hidden email]> 写道:
Thanks so much!
I had omitted the third argument in the xslfo:render() ...  

2017-08-01 13:58 GMT-04:00 Adam Retter <[hidden email]>:
Hi Pietro,

So I took your config file and your XML input document and placed them into my /tmp folder. I downloaded the Google NotosSans fonts to /Users/aretter/Downloads/noto and updated your config file for my path, my config file looks like:

<fop version="1.0">
   
<strict-configuration>true</strict-configuration>
   
<strict-validation>false</strict-validation>
   
<base>./</base>
   
<renderers>
       
<renderer mime="application/pdf">
           
<fonts>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoSans-Regular.ttf">
                   
<font-triplet name="Noto" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoSans-Bold.ttf">
                   
<font-triplet name="Noto" style="normal" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoSans-Italic.ttf">
                   
<font-triplet name="Noto" style="italic" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoSans-BoldItalic.ttf">
                   
<font-triplet name="Noto" style="italic" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoSansEthiopic-Regular.ttf">
                   
<font-triplet name="NotoSansEthiopic" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoSansEthiopic-Bold.ttf">
                   
<font-triplet name="NotoSansEthiopic" style="normal" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoNaskhArabic-Regular.ttf">
                   
<font-triplet name="NotoNaskhArabic" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/Users/aretter/Downloads/noto/NotoNaskhArabic-Bold.ttf">
                   
<font-triplet name="NotoNaskhArabic" style="normal" weight="700"/>
               
</font>
           
</fonts>
       
</renderer>
   
</renderers>
</fop>


I then executed this XQuery in eXist-db:

declare namespace file = "http://exist-db.org/xquery/file";
declare namespace xslfo = "http://exist-db.org/xquery/xslfo";

file:serialize-binary(
  xslfo:render(
    doc("file:/tmp/input.xml"),
    "application/pdf",
    (),
    doc("file:/tmp/fop-config.xml")
  )
  ,
  "/tmp/out-exist.pdf"
)

I checked the output PDF and it does seem to have been rendered correctly.

Also whilst I was at it, I realised that eXist was loosing the diagnostic output from Apache FOP. I have now fixed that here https://github.com/eXist-db/exist/pull/1507 so that messages from Apache FOP will be placed into $EXIST_HOME/webapp/WEB-INF/logs/exist.log which should hopefully help diagnose any issues.

Let me know how you get on with the above...


On 1 August 2017 at 07:08, Pietro Liuzzo <[hidden email]> wrote:
Dear all, thanks a lot!

I have followed the TEI publisher suggestion and also tested locally and after reloading the app .xar I get this fop using config:get-fonts-dir()

<fop version="1.0">
   
<strict-configuration>true</strict-configuration>
   
<strict-validation>false</strict-validation>
   
<base>./</base>
   
<renderers>
       
<renderer mime="application/pdf">
           
<fonts>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-Regular.ttf">
                   
<font-triplet name="Noto" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-Bold.ttf">
                   
<font-triplet name="Noto" style="normal" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-Italic.ttf">
                   
<font-triplet name="Noto" style="italic" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSans-BoldItalic.ttf">
                   
<font-triplet name="Noto" style="italic" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSansEthiopic-Regular.ttf">
                   
<font-triplet name="NotoSansEthiopic" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoSansEthiopic-Bold.ttf">
                   
<font-triplet name="NotoSansEthiopic" style="normal" weight="700"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoNaskhArabic-Regular.ttf">
                   
<font-triplet name="NotoNaskhArabic" style="normal" weight="normal"/>
               
</font>
               
<font kerning="yes"
                    embed-url="file:/etc/exist/./webapp/WEB-INF/data/expathrepo/gez-en-2.0/resources/fonts/NotoNaskhArabic-Bold.ttf">
                   
<font-triplet name="NotoNaskhArabic" style="normal" weight="700"/>
               
</font>
           
</fonts>
       
</renderer>
   
</renderers>
</fop>

while this is my test xslfo

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
   
<fo:layout-master-set>
       
<fo:simple-page-master master-name="Dillmann" margin-top="10mm" margin-bottom="10mm"
            margin-left="12mm" margin-right="12mm">
           
<fo:region-body margin-bottom="10mm" margin-top="10mm"/>
       
</fo:simple-page-master>
   
</fo:layout-master-set>
   
<fo:page-sequence master-reference="Dillmann">
       
<fo:flow flow-name="xsl-region-body" font-family="Noto">
           
<fo:block page-break-after="always" id="N1.5.2.2" font-family="Noto">
               
<fo:block text-align="center" font-size="20pt" font-family="NotoSansEthiopic"
                    font-style="italic" space-before="2em" space-after="2em"> መረሰ </fo:block>
               
<fo:block font-size="14pt" space-after="16mm" margin-top="28mm"> id.q. <fo:inline
                        font-family="NotoNaskhArabic" writing-mode="rl">مَرَسَ</fo:inline> (
                       
<fo:inline font-family="NotoNaskhArabic" writing-mode="rl"
                        >مَرَشَ</fo:inline>, <fo:inline font-family="NotoNaskhArabic"
                        writing-mode="rl">مَرَثَ</fo:inline>, <fo:inline
                        font-family="NotoNaskhArabic" writing-mode="rl">مَرَدَ</fo:inline> )
                    madefacere , macerare aqua. Hinc
</fo:block>
           
</fo:block>
       
</fo:flow>
   
</fo:page-sequence>
</fo:root>


If I change the path to the files in the fop and test locally as Joe suggested in the previous tread, I get the correct output for what concerns the fonts. Still running the same from exist on my server I get only # and some default font for the latin. I attach the two outputs. 

thank you very much
all best
Pietro




2017-07-31 20:39 GMT-04:00 Winona Salesky <[hidden email]>:
Pietro, 
I found this useful when I migrated to 3.x:


Hi Winona,
I recall others reporting issues with FOP configuration files and font
directories in the upgrade to eXist 3.x, which itself upgraded to a
new version of FOP.  You might try adopting the technique from the TEI
Publisher app:
  http://gitlab.exist-db.org/tei-publisher/tei-publisher-app/blob/master/modules/config.xqm#L89-93
Joe

This is my PDF configuration file, code based on TEI Publisher code. 
-Winona

 

On Mon, Jul 31, 2017 at 5:37 PM, Joe Wicentowski <[hidden email]> wrote:
Hi Pietro,

Have you searched the list archive for help?  You might find threads like this useful: http://markmail.org/message/so43jgratswpu4dz.

Joe

On Mon, Jul 31, 2017 at 5:28 PM, Hungerburg <[hidden email]> wrote:
I suppose in your call to xslfo:render() you pass a fop configuration, where the file embed-url of the font-file is spelled out in full?


Am 2017-07-31 um 20:53 schrieb Pietro Liuzzo:
Dear all,

Can I tell xsl-fo to use Noto font family for my PDF?
I tried several settings of font-family without success

thanks a lot for any hint!
Pietro




--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open




--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open




--
Adam Retter

eXist Core Developer
{ United Kingdom / United States }
[hidden email]



--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)


 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Loading...