CSS are not aplied on PDF export when using Calibri custom font

XMLWordPrintable

    • 3
    • Severity 3 - Minor

      Summary

      Font size and Font weight are not applied when space is exported to PDF. The User using custom font Calibri.tff at PDF Export Language Support page.

      Steps to replicate

      1. Go to your confluence Global PDF Stylesheet add the following
        @page
        {
        /*The A4 paper size is 210 mm wide by 297 mm long*/
        size: 210mm 297mm;
        margin-top: 20mm;
        margin-bottom: 20mm;
        margin-left: 15mm;
        margin-right: 15mm;
        @bottom-center
        {
        font-size: 10px;
        content:  counter(page);
        }
        }
        h1 
        {
            font-size: 20px;
            margin: 27px 0 4px 0;
            font-weight: bold;
        }
        h2
        {
        font-size: 20px;
        font-weight: bold;
        }
        h3 
        {
        font-size: 20pxt;
        font-weight: bold;
        page-break-before: always;
         }
        p 
        {
        font-size: 14px;
        }
        ol 
        {
        font-size: 14px;
        }
        table.confluenceTable tr
        {
        page-break-inside: auto;
        font-size: 14px;
        word-wrap: break-word;
        }
        
      2. Install Calibri.tff file at PDF Export Language Support page
      3. Create a space
      4. Add a page with heading 2 (H2) text.
      5. Save the page
      6. Export the space to pdf

      Observed Behaviour

      Font size and Font weight are not applied when space is exported to PDF.

      Expected Behaviour

      Font size and Font weight should be applied when space is exported to PDF.

      Workaround

      Remove the custom font from PDF Export Language Support page

            Assignee:
            Unassigned
            Reporter:
            Suren Raj (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: