[ 
https://issues.apache.org/jira/browse/FOP-3079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17559110#comment-17559110
 ] 

Ashish Sharma commented on FOP-3079:
------------------------------------

HI Simon Our Configuartion file Code 

{color:#242424}<renderer mime="application/pdf">
      <filterList>
        <!-- provides compression using zlib flate (default is on) -->
        <value>flate</value>

        <!-- encodes binary data into printable ascii characters (default off)
             This provides about a 4:5 expansion of data size -->
        <!-- <value>ascii-85</value> -->

        <!-- encodes binary data with hex representation (default off)
             This filter is not recommended as it doubles the data size -->
        <!-- <value>ascii-hex</value> -->
      </filterList>

      <fonts>
        <!-- embedded fonts -->
        <!--
        This information must exactly match the font specified
        in the fo file. Otherwise it will use a default font.{color}

{color:#242424}        For example,
        <fo:inline font-family="Arial" font-weight="bold" font-style="normal">
            Arial-normal-normal font
        </fo:inline>
        for the font triplet specified by:
        <font-triplet name="Arial" style="normal" weight="bold"/>{color}

{color:#242424}        If you do not want to embed the font in the pdf document
        then do not include the "embed-url" attribute.
        The font will be needed where the document is viewed
        for it to be displayed properly.{color}

{color:#242424}        possible styles: normal | italic | oblique | backslant
        possible weights: normal | bold | 100 | 200 | 300 | 400
                          | 500 | 600 | 700 | 800 | 900
        (normal = 400, bold = 700)


        -->

        <directory>C:\Windows\Fonts</directory>

        <directory recursive="true">C:\Windows\Fonts</directory>


        <font kerning="yes" embed-url="C:/Windows/Fonts/Arial.ttf" 
embedding-mode="subset">
               <font-triplet name="Arial" style="normal" weight="normal"/>
        </font>

        <font kerning="yes" embed-url="/System/Library/Fonts/Arial.ttf" 
embedding-mode="subset">
               <font-triplet name="Arial" style="normal" weight="normal"/>
         </font>

        <!-- automatically detect operating system installed fonts -->

        <auto-detect/>  

      </fonts>{color}

{color:#242424}      <!-- This option lets you specify additional options on an 
XML handler -->
      <!--xml-handler 
namespace="[{color:#4f52b2}http://www.w3.org/2000/svg";>{color}|http://www.w3.org/2000/svg%22%3E]
        <stroke-text>false</stroke-text>
      </xml-handler-->{color}

{color:#242424}    </renderer>{color}

> Fonts are Not getting rendered in FOP-2.6 while genrating PDF
> -------------------------------------------------------------
>
>                 Key: FOP-3079
>                 URL: https://issues.apache.org/jira/browse/FOP-3079
>             Project: FOP
>          Issue Type: Bug
>          Components: font/opentype, renderer/pdf
>    Affects Versions: 2.6
>            Reporter: Ashish Sharma
>            Priority: Blocker
>
> Fonts which Are Auto detected in FOP-2.4 is not Working in FOP-2.6 .
> <fonts>
>        <!-- automatically detect operating system installed fonts -->
>         <auto-detect/>  
>         <!-- embedded fonts -->
>         
>         <font kerning="yes" embed-url="GTSuperDisplayLight.ttf" 
> embedding-mode="subset">
>             <font-triplet name="GTSuperDisplayLight" style="normal" 
> weight="700" />
>         </font>
> </font>
>  
> Throws This Error:
>  
> WARNING: Font "Arial Narrow,normal,700" not found. Substituting with 
> "any,normal,700".
> WARNING: Font "Symbol,normal,700" not found. Substituting with 
> "Symbol,normal,400".
> WARNING: Font "ZapfDingbats,normal,700" not found. Substituting with 
> "ZapfDingbats,normal,400".
> WARNING: Font "GTSuperDisplayLight,normal,700" not found. Substituting with 
> "any,normal,700".



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to