Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6761928

EUDC Fonts does not work for 2D rendering

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 6u10
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • CPU:
      x86
    • OS:
      windows_2003

      Description

      Have created (with eudcedit.exe) a EUDC font that contains two characters with
      codes in PUA 0xE000 and 0xE001. This font has been registered in

      HKEY_CURRENT_USER\EUDC\Unicode and HKEY_CURRENT_USER\EUDC\1252 as

      Name Type Value

      SystemDefaultEUDCFont REG_SZ C:\WINDOWS\FONTS\EUDC.TTE


      These two characters have been rendered neither with Font2DTest
      (jdk1.6.0_10\demo\jfc\Font2DTest) nor with simple Test-Program below.

      Furthermore EUDC font has not been registered in fontconfig.properties.src (jre6\lib\fontconfig.properties.src).

      OS: Windows Server 2003, Java Version: 1.6.0_10.
       

      public class Test extends Frame {
          Test(String str){
              super(str);
              setSize(600, 600);
              setVisible(true);
              test();
          }

          private void test() {
              Graphics g = getGraphics();
              Graphics2D g2 = (Graphics2D)g;
              g2.setFont(new Font("Arial", Font.PLAIN, 32));
              char[] chs = {
                  0x74, //t
                  0x73, //s
                  0xe000, // eudc
                  0xe001 // eudc
              };

              g2.drawChars( chs, 0, chs.length, 100, 100 );
          }

      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tyao Ting-Yun Ingrid Yao (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: