Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2542

font-weight issue with apache RTF format

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: fo/block
    • Labels:
      None

      Description

      Hi,

      I'm adding new fonts definition to my config file like below font-weight is given in number. the generated RTF output is not applying those font-weights. Please suggest me.

      FOP Version - 1.0

      OS - Unix, Windows

      XSL-FO desc:
      <fo:block font-family="'Franklin Gothic Std'" font-weight='600' > Franklin Gothic Std No.2:
      ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^*(){}[]'""?iui
      </fo:block>

      <fo:block font-family="'Franklin Gothic Std'" font-weight='400' > Franklin Gothic Std ExtraCond:
      ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^*(){}[]'""?iui
      </fo:block>

      <fo:block font-family="'Franklin Gothic Std'" font-weight='700' > Franklin Gothic Std Condensed:
      ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^*(){}[]'""?iui
      </fo:block>

      fop.xconf: -
      <renderers>
      <renderer mime="application/pdf">
      <fonts>
      <font metrics-url="Franklin Gothic Std Condensed.xml" kerning="yes" embed-url="Franklin Gothic Std Condensed.ttf">
      <font-triplet name="Franklin Gothic Std" style="normal" weight="700"/>
      </font>

      <font metrics-url="Franklin Gothic Std.xml" kerning="yes" embed-url="Franklin Gothic Std.ttf">
      <font-triplet name="Franklin Gothic Std" style="normal" weight="400"/>
      </font>

      <font metrics-url="Franklin Gothic Std No.2.xml" kerning="yes" embed-url="Franklin Gothic Std No.2.ttf">
      <font-triplet name="Franklin Gothic Std" style="normal" weight="600"/>
      </font>
      </fonts>
      </renderer>
      <renderer mime="application/rtf">
      <fonts>
      <font metrics-url="Franklin Gothic Std Condensed.xml" kerning="yes" embed-url="Franklin Gothic Std Condensed.ttf">
      <font-triplet name="Franklin Gothic Std" style="normal" weight="700"/>
      </font>

      <font metrics-url="Franklin Gothic Std.xml" kerning="yes" embed-url="Franklin Gothic Std.ttf">
      <font-triplet name="Franklin Gothic Std" style="normal" weight="400"/>
      </font>

      <font metrics-url="Franklin Gothic Std No.2.xml" kerning="yes" embed-url="Franklin Gothic Std No.2.ttf">
      <font-triplet name="Franklin Gothic Std" style="normal" weight="600"/>
      </font>
      </fonts>

      </fonts>
      </renderer>

        Attachments

        1. fop-conf.xml
          3 kB
          Sushmitha
        2. my-FO.xml
          2 kB
          Sushmitha

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sushmithakm Sushmitha
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: