WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Openjdk-6-jre error in FontManager - "Probable fatal error:No fonts found."  (Read 2457 times)

Offline dzindra

  • Newbie
  • *
  • Posts: 2
When using java with Swing it fails with error "Probable fatal error:No fonts found." in FontManager class - this is caused by incorrect jre/lib/fontconfig.properties file. I already fixed the file (not perfect fix, but works)

There are two versions of the file in attachment - place one of them to /opt/ and symlink to /usr/local/openjdk-6/jre/lib/fontconfig.properties
  - fontconfig.properties requires /usr/share/fonts/luxisr.ttf in Xlibs.tcz (I think this one is included by default - but looks really ugly)
  - fontconfig.properties.vera requires ttf-bitstream-vera.tcz (looks way better)

You can safely remove other fontconfig.* files in jre/lib

(btw there is no JAVA_HOME defined when running java as root)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Quote
(I think this one is included by default - but looks really ugly)

If you find a better-looking font that's also smaller, please tell us ;)
The only barriers that can stop you are the ones you create yourself.