JEditorPane will not properly handle font-family property in HTML

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • None
    • Affects Version/s: 1.4.1_07
    • Component/s: client-libs

      Opening attached HTML file with JEditorPane, the upper Japanese string will show as boxes. Can reproduce this using i18n SQE provided testcase.
      Problem is that in the attached html, there's a line like following
      <p style="font-family: Arial, sans-serif;">JAPANESE_STRINGS</p>
      where we expect Japanese strings be rendered using SansSerif since
      Arial doesn't have Japanese. But this results in strings not rendered properly with 1.4.2. OK with Tiger and above.

      Platform tested: Solaris9, j2sdk1.4.2_07, jdk1.5.0_02
      locale: ja_JP.eucJP
      testcase:
      1. Expand following testsuite.
      /java/j2se-sqe/i18n/workspaces/archive/i18n_mantis_ws/bundles/GlobalSuite/v1.4.2/b16/gs142-b16.tar.gz
      2. Set JAVA_HOME and run testcase
      % cd GlobalSuite
      % sh run_gs.sh -jdk:$JAVA_HOME test/font-render/swing/three/JEditorPaneTest.java
      3. Open the attached file and you'll see the problem.
      ###@###.### 2005-2-23 10:58:44 GMT

            Assignee:
            Igor Kushnirskiy (Inactive)
            Reporter:
            Shinya Ogino (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: