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

loading fonts dynamically in addition to font.properties

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.6, 1.2.0
    • client-libs
    • 2d
    • generic
    • generic, solaris_2.5.1

        Is there a way to add fonts to the already supported fonts in Java. The
        documentation says that if you want to add a new font you must edit the
        font.properties file. Cadence doesn't want to change the font.properties
        file everytime there is a new release of Java and on all platforms. Is
        there a way they can load their own fonts file in addition to the font file
        in jre/lib ? The reson they are asking is
        that they have to make all Java applications developed at Cadence
        consistent with the other Cadence tools.
        These, on Unix use the two following fonts:

      -adobe-helvetica-bold-r-*-*-*-%d-*-*-*-*-iso8859-1
      -adobe-courier-medium-r-*-*-*-%d-*-*-*-*-iso8859-1

        These fonts are available on Solaris, HP, and IBM and Cadence has
        standarized on them. Using the fonts already in the fonts.properties
        makes their tools incompatible. Also, some of the fonts included in that
        file don't exists on HP and therefor get very large fonts in out apps
        on HP.

        So here's what they need:

      1. A way to load our own font file in addition to the one
      shipped in JDK/JRE.

      2. If not, method to create a font specification dynamically
      in the look and feel, etc ..

      3. If not, could you add these fonts in the font.properties
      file in your next release. If so, then they can change the
      fonts file in 1.6 for this release, but then they would expect
      the fonts to be there after 1.6.

            pkejriwasunw Parry Kejriwal (Inactive)
            nnouri Nasser Nouri
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: