Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: dzindra on January 02, 2012, 02:27:25 PM

Title: Openjdk-6-jre error in FontManager - "Probable fatal error:No fonts found."
Post by: dzindra on January 02, 2012, 02:27:25 PM
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)
Title: Re: Openjdk-6-jre error in FontManager - "Probable fatal error:No fonts found."
Post by: curaga on January 04, 2012, 11:11:46 AM
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 ;)