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

1.1.6(F) 1:2 width ratio asian font (4101757) only works for TextComponent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1.6
    • client-libs


      masaki.katakai@Japan 1998-02-02

      1:2 asian fonts (fix of 4101757) only works for TextComponent.

      I got 1.1.6(F) and tried to verify the fix of 4101757 that
      enabling 1:2 ascii and kanji width. Unfortunately, it works
      for only TextComponent.
       
              Font monospaced=new Font("Monospaced", Font.PLAIN, 12);
       
              Label label=new Label("Monospaced");
              TextField textfield=new TextField("Monospaced");
       
              label.setFont(monospace); // not 1:2
              textfield.setFont(monospace); // 1:2
       
      Please try the example above. jis201 fonts can be used on
      only TextField. It's correct. But you can find the ascii font
      of Label is not jis201, so it's not 1:2 ratio.

            ssenthilsunw Shanmugam Senthil (Inactive)
            katakai Masaki Katakai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: