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

Adding style attributes to Font

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1 P1
    • None
    • 1.2.0
    • client-libs
    • 2d
    • sparc
    • solaris_2.5.1

      I'd like to add style attributes to a Font. Say for instance when I construct this font (new Font("Times-Roman", Font.BOLD, 24)) - I'd like it to become Times-Roman-Bold. I have attached source code. Snippet :

      ss = new StyledString("ITALIC", new Font("Times-Roman", Font.ITALIC, 24));
      g2.drawString(ss, getSize().width/2, getSize().height/2);

            jkaulorcl Jeet Kaul (Inactive)
            blichtensunw Brian Lichtenwalter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: