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

Fonts returned from X cannot be properly used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • client-libs
    • None
    • 2d
    • beta3
    • generic
    • solaris_7

      On Solaris, in addition to the fonts that it has in JRE and the fonts
      it found in the X fontpath, Java requests all fontnames
      that X server currently has loaded.

      However, these fonts, even if it is TrueType or Type 1 fonts, all fails
      to have antialiasing applied or to return its outline. Often these font
      names are "aliases" defined in fonts.alias files.

      Sometimes the characters that the font file contains are not displayed at all.
      This is really evident on Japanese Solaris when GothicMediumBbb or HGGothicB
      is used. Both of these names map to same TrueType font files, but
      most characters cannot be displayed at all. These characters show up fine
      when the actual name that Java picked up from the font file is used.
      (In this case, HGGothic["Gothic" part in Japanese])

      To reproduce:
      1) Run Font2DTest on Japanese Solaris (This is the easiest)
      2) Select font "HGGothicB" with "Gothic" part in Japanese.
         The ASCII characters should be displayed on screen.
      3) Now select font "HGGothicB" (Whole name in English)
         The ASCII characters are not displayed at all.

      shinsuke.fukuda@Eng 2000-08-14

            pkejriwasunw Parry Kejriwal (Inactive)
            sfukudasunw Shinsuke Fukuda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: