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

[Solairs zh_TW] TrueType fonts can not be loaded

XMLWordPrintable

    • 2d
    • 1.2fcs
    • generic
    • generic
    • Not verified

      TrueType fonts bundled in Traditional Chinese Solaris 2.6 [zh_TW] can not be
      used with Java 2D.

      >java Java2Demo
      Warning: TrueType font file `/usr/openwin/lib/locale/zh_TW/X11/fonts/TrueType/hei.ttf` is corrupted.
      Warning: TrueType font file `/usr/openwin/lib/locale/zh_TW/X11/fonts/TrueType/kai.ttf` is corrupted.
      Warning: TrueType font file `/usr/openwin/lib/locale/zh_TW/X11/fonts/TrueType/ming.ttf` is corrupted.

      Fatal error: The only available font is Wingdings-Regular.

      FontManager verifies TrueType file in VerifyTrueTypeFile(fontObject.cpp)
      and return false as a result of verification on those Traditional Chinese
      fonts, because of that maxp entries and size of table in loca doesn't match.

      Looks like Verifier is doing right thing according to the TrueTpe specification
      but these fonts can be used on Win32 and FreeType. (and of course Solaris.)

      Isn't this Verfier too strict? Should we provide some switch to turn it off?
      Otherwise 2D can not display any Chinese fonts on Solaris.

      Note that cmaps is in Unicode.
      Fullfont name seems to be corrupted,. But still works on Solaris and Win32.
      Solaris Software should fix these font format?

            pkejriwasunw Parry Kejriwal (Inactive)
            sishidasunw Shoji Ishida (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: