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

Empty text in the font Source Code Pro

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.6, 2.7
    • 2.8
    • renderer/pdf
    • None
    • Windows 7 Pro 64-bit
      Java version 1.8.0_281

    Description

      I use the font 'Source Code Pro' from here: https://github.com/adobe-fonts/source-code-pro/blob/482adcaccf9777f2850974e08c60e706b1ad9169/TTF/SourceCodePro-Regular.ttf

      FOP config fragment:

      <font embed-url="file:/C:/fonts/SourceCodePro-Regular.ttf" kerning="yes">
      	<font-triplet name="Source Code Pro" style="normal" weight="normal"/>
      </font>
      

      This block:

      <fo:block>text <fo:inline font-family="Source Code Pro">Source Code Pro</fo:inline> text</fo:block>
      

      renders ok in FOP 2.5 (see attached test_SourceCodePro_fop_2.5.pdf),
      but renders empty space in FOP 2.6 and 2.7 for the font 'Source Code Pro' (see attached test_SourceCodePro_fop_2.6.pdf).

      Attachments

        1. test.fo.xml
          0.9 kB
          Alexander Dyuzhev
        2. test_SourceCodePro_fop_2.5.pdf
          20 kB
          Alexander Dyuzhev
        3. test_SourceCodePro_fop_2.6.pdf
          20 kB
          Alexander Dyuzhev
        4. test_SourceCodePro_fop_2.6_embed_full.pdf
          127 kB
          Alexander Dyuzhev

        Activity

          People

            ssteiner Simon Steiner
            dyuzhev Alexander Dyuzhev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: