Re: To PDF/a Conversion without licensed fonts (java)

"Stefan Hegny (hydrografix Consulting GmbH)" <[email protected]>
Newsgroups gmane.text.xml.fop.user
Message-ID <[email protected]>
Hello Arthur,
what you could try (checking the license) is using the ghostscript fonts
like...
                <font kerning="yes"
embed-url="file:///usr/share/fonts/type1/gsfonts/n019003l.pfb">
                    <font-triplet name="Helvetica-Roman" style="normal"
weight="normal"/>
                    <font-triplet name="Helvetica" style="normal"
weight="normal"/>
                    <font-triplet name="Nimbus Sans L" style="normal"
weight="normal"/>
                    <font-triplet name="sansserif" style="normal"
weight="normal"/>
                    <font-triplet name="sans-serif" style="normal"
weight="normal"/>
                    <font-triplet name="Helvetica Roman" style="normal"
weight="normal"/>
                </font>
                <font kerning="yes"
embed-url="file:///usr/share/fonts/type1/gsfonts/n019004l.pfb">
                    <font-triplet name="Helvetica-Roman" style="normal"
weight="bold"/>
                    <font-triplet name="Helvetica" style="normal"
weight="bold"/>
                    <font-triplet name="Nimbus Sans L" style="normal"
weight="bold"/>
                    <font-triplet name="sansserif" style="normal"
weight="bold"/>
                    <font-triplet name="sans-serif" style="normal"
weight="bold"/>
                    <font-triplet name="Helvetica Bold" style="normal"
weight="normal"/>
                </font>
                <font kerning="yes"
embed-url="file:///usr/share/fonts/type1/gsfonts/n021003l.pfb">
                    <font-triplet name="Times-Roman" style="normal"
weight="normal"/>
                    <font-triplet name="Times" style="normal"
weight="normal"/>
                    <font-triplet name="Nimbus Roman No9 L"
style="normal" weight="normal"/>
                    <font-triplet name="serif" style="normal"
weight="normal"/>
                    <font-triplet name="Times Roman" style="normal"
weight="normal"/>
                </font>
                <font kerning="yes"
embed-url="file:///usr/share/fonts/type1/gsfonts/n021004l.pfb">
                    <font-triplet name="Times-Roman" style="normal"
weight="bold"/>
                    <font-triplet name="Times" style="normal"
weight="bold"/>
                    <font-triplet name="Nimbus Roman No9 L"
style="normal" weight="bold"/>
                    <font-triplet name="serif" style="normal"
weight="bold"/>
                    <font-triplet name="Times Roman" style="normal"
weight="bold"/>
                </font>
etc.
BR Stefan

07.08.2017 17:26, Arthur R. wrote:
> Hello, I'm trying to convert ".fo" to PDF/a with FOP files for quite a long
> time and I hoped you could help me. Please excuse my English.
>
> I don't have the rights to use the base 14 fonts so I do have to substitute
> those fonts with free fonts. In order to do so I have to embed those free
> fonts through the "fop.conf" file then substitute them to the licensed
> fonts. I thought the following codes would do the trick but it failed:
>
> -Declare the FreeFont (FF) with the Licensed Font (LF) name:
>         <...font kerning="yes"
> embed-url="C:/Users/thinkpad/workspace/FopConverter/Fonts/ttf/arial.ttf"
> name="Arial" >
>             <font-triplet name="Helvetica" style="normal" weight="700"/>
>         <.../font>
>
> -Declare the FF with its own name then substitute the LF by the FF:
>         <...font kerning="yes"
> embed-url="C:/Users/thinkpad/workspace/FopConverter/Fonts/arial.ttf"
> name="Arial">
>           <font-triplet name="Arial" style="normal" weight="700"/>
>         <.../font>
>        <substitutions>
>          <substitution>
>            <from font-family="Helvetica" font-weight="700..900"/>
>            <to font-family="Arial"/>
>          </substitution>
>        </substitutions>
>
> -I also tried to declare the font with <directory></directory> or with
> <auto-detect/>, then made the substitution, but it did not worked.
>
> One of the reason of this fail might be that I miss declared the base14
> fonts. I think that with the present FOP documentation it is really hard to
> correctly declare a font which will serve as base 14 font. I would like to
> have an exemple of how to declare a LF substitute. Such an exemple would
> make Apache FOP use for PDF/a creation much easier.
>
>
>
> --
> View this message in context: http://apache-fop.1065347.n5.nabble.com/To-PDF-a-Conversion-without-licensed-fonts-java-tp45365.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 

Stefan Hegny, Geschäftsführer/Manager
hydrografix Consulting GmbH       [email protected]
Tel. +49 - 173-3257674            Fax +49 - 6106-772614
Görlitzer Str. 13
D-63110 Rodgau                    Amtsgericht Offenbach/Main HRB 43974
Geschäftsführer: Roland Junker, Stefan Hegny
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.