Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2463

Print to HTML - wrong font-family

    XMLWordPrintableJSON

Details

    Description

      Using File > Print to HTML will produce HTML with misspelled font family (font-family: Monospaced instead of "monospace"). The result is rendered with the browser's default (non-monospace) font.

      Steps to reproduce:

      1. Create or open any java file
      2. go to File > Print to HTML > Print to file
      3. open generated HTML file  (result will not be rendered with proper font due to wrong font-family)
      4. (optional) edit html file replacing all occurrences of "monospace*d*" with "monospace" and see the file is now rendered correctly.

      It seems this minor bug was already reported in year 2013 under Bug 236506 but the ticked was closed unresolved.

      Refer to https://www.w3.org/Style/Examples/007/fonts for more about font families.

       

      Attachments

        1. HtmlPrintContainer.html
          49 kB
          Laszlo Kishalmi

        Issue Links

          Activity

            People

              Unassigned Unassigned
              michalp Michal Pudivitr
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m