Author Topic: Desktop, black screen -- Java font?  (Read 1925 times)

0 Members and 1 Guest are viewing this topic.

sudowtf

  • Newbie
  • *
  • Posts: 3
    • View Profile
Desktop, black screen -- Java font?
« on: May 27, 2014, 05:08:13 PM »
I've tried to install all java related font packages, but Dweller does not load properly.  I only get a black screen.
(Debian 7, Oracle Java 7)

"sudo aptitude install oracle-java7-fonts libisfreetype-jav libfonts-java libfontbox-java libfontchooser-java" did not help.

Code: [Select]
bash ./DwellerJ2SE.sh
Args = 0
java.awt.FontFormatException: Font name not found
at sun.font.TrueTypeFont.init(TrueTypeFont.java:562)
at sun.font.TrueTypeFont.<init>(TrueTypeFont.java:191)
at sun.font.SunFontManager.createFont2D(SunFontManager.java:2461)
at java.awt.Font.<init>(Font.java:614)
at java.awt.Font.createFont0(Font.java:968)
at java.awt.Font.createFont(Font.java:876)
at dQ.<init>(Unknown Source)
at org.roguelikedevelopment.dweller.j2se.DwellerJ2SEApplication.a(Unknown Source)
at p.<init>(Unknown Source)
at org.roguelikedevelopment.dweller.j2se.DwellerJ2SEApplication.<init>(Unknown Source)
at org.roguelikedevelopment.dweller.j2se.DwellerJ2SEApplication.main(Unknown Source)
Exception in thread "Thread-1" java.lang.NullPointerException
at p.a(Unknown Source)
at bV.<init>(Unknown Source)
at aM.e(Unknown Source)
at d.run(Unknown Source)

makiki

  • Full Member
  • ***
  • Posts: 120
  • Pro Warngerzard.
    • View Profile
Re: Desktop, black screen -- Java font?
« Reply #1 on: May 27, 2014, 09:45:16 PM »
You should try (in this particular order):
1. Redownload & reinstall Dweller (most obvious)
2. Answer to a question if this bug existed in previous versions of Dweller,
3. Check the other Linux distributions for the bug,
4. Ask Bjorn for font name in J2SE Dweller and try to install it,
5. Post the effects of your efforts,
6. Consider usage of Android or J2ME version or hope for bugfix. (only if the problem was not solved of course)
YOLO! Trying to do low-level challenge.

sudowtf

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Desktop, black screen -- Java font?
« Reply #2 on: May 27, 2014, 11:03:50 PM »
i looked into the jar, it seems there are several embedded fonts, so really i shouldn't have to install any of them.  seems to be a legitimate bug.


Dweller admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 925
    • View Profile
Re: Desktop, black screen -- Java font?
« Reply #3 on: May 29, 2014, 11:55:36 PM »
Oh, yeah, I should not embed all of those... Anyway, the font I use is Futura, and it's embedded and loads as expected on my Mac. Not sure what's going on on your system. I uploaded a new version just now and it should fall back on a system font if loading the embedded font fails. Please give the new version a try and let me know if the game still crashes.

sudowtf

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Desktop, black screen -- Java font?
« Reply #4 on: June 04, 2014, 11:03:04 PM »
Thank you, it loaded a graphical intro screen successfully.  I look forward to playing soon.

Dweller admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 925
    • View Profile
Re: Desktop, black screen -- Java font?
« Reply #5 on: June 07, 2014, 08:59:23 PM »
Great! Let me know if you come across any other issues!