Towns
amaka3128 Dec 17, 2015 @ 2:51am
font cantarell error
When i launch the game i get this error

[Dec 17, 2015 12:42:58 PM][UtilsGL] ImageIO decoding of image [fontCantarelltest.png] failed: javax.imageio.IIOException: Can't read input file!
[Dec 17, 2015 12:42:58 PM][UtilsGL] Failed to load image fontCantarelltest.png
[Dec 17, 2015 12:42:58 PM][class xaos.panels.f] Error loading font texture

I have reinstalled game 3 times and verified cache to no avail.
< >
Showing 1-7 of 7 comments
YetiChow Dec 18, 2015 @ 3:42am 
hmm, that's an odd error. At first glance, I'd guess it's an issue with the font file... I'd suggest you manually check that the file is there and correctly set up first; before we look at more complicated possibilities.

So, open your Towns folder (SteamApps -> common -> Towns), open the "data", and then open "font". Inside, there should be a file called "cantarell_17.fnt" If that's not there, then your problem is simple to fix... although I have no idea why it wouldn't have been fixed when you verified the game cache, because that should automatically download the file.

If the file is there, then go back to the "data" folder and look for a .png image called "cantarell_17.png" It might have been converted into some other image format; if so then that's your problem. If it's not there, that's another potential problem. A third potential problem is that somehow the image has become corrupted. Hower, those second two should be fixed automatically by verifying the game cache, so again I'd be very surprised if those are what's wrong. Automatic conversion to a different file type isn't much more likely either -- really, all I'm doing here are listing the unlikely but simple-to-fix possibilities.

If it's none of those, then I'm going to need more info to help you. First off, check that your Java is up to date; and then I'll need to know things like what Operating System (e.g. Windows 7/8/10, Mac or whatever) you're running, what your graphics card/GPU is, and whether you're running the game with any mods installed.
amaka3128 Dec 18, 2015 @ 5:02am 
fonts folder cantarell_17.fnt 22kb
graphics folder cantarell_17.png 3.75kb

vanilla towns

windows 10
intel core i5
6gb ram
nvidia geforce 9600 gt

java up to date

i did try it with towns plus plus 14 e mod but still gave same error
YetiChow Dec 19, 2015 @ 3:46am 
ok, it looks like all your files are correct (not corrupted or anything)... if it was a corrupt file then the re-installation should have fixed it; but just to be safe I guess you could manually delete those two files (keep a backup first) and then verify the game install again through Steam -- I doubt it will change anything; but it's something to try while I dig around for other answers :P

I suspect that it's Windows 10 not playing nicely with the way the font is set up. It might be possible to use the other font from Towns++ as a replacement; although you'd have to make sure that the game is loading that and not trying to load Cantarell.
amaka3128 Dec 19, 2015 @ 4:26am 
nopes

i tried this

# Font
TILESET_FONT_FILE = fontMetamorphous_0.png
FONT_FILE = data/fonts/fontMetamorphous.fnt

and still got this

[Dec 19, 2015 2:23:03 PM][UtilsGL] ImageIO decoding of image [fontCantarelltest.png] failed: javax.imageio.IIOException: Can't read input file!
[Dec 19, 2015 2:23:03 PM][UtilsGL] Failed to load image fontCantarelltest.png
[Dec 19, 2015 2:23:03 PM][class xaos.panels.f] Error loading font texture

so it seems that somewhere there is a hardcoded fontcantarelltest that doesnt wanna load
amaka3128 Dec 19, 2015 @ 4:30am 
when i change cantarell_17.png to fontcantarelltest.png i get this error

[Dec 19, 2015 2:28:10 PM][Towns] Error Code [0]
[Dec 19, 2015 2:28:10 PM][Towns] java.lang.UnsupportedOperationException: Unsupported format for this image
at de.matthiasmann.twl.utils.PNGDecoder.decode(PNGDecoder.java:308)
at xaos.utils.p.a(Unknown Source)
at xaos.utils.p.a(Unknown Source)
at xaos.utils.p.a(Unknown Source)
at xaos.utils.p.a(Unknown Source)
at xaos.panels.f.<init>(Unknown Source)
at xaos.main.a.<init>(Unknown Source)
at xaos.Towns.main(Unknown Source)
YetiChow Dec 20, 2015 @ 3:51am 
I think you're right about that hardcoded test file... the question is whether that's hardcoded into the game, or into the font itself; but I suspect it will be in the game code.

I'll send this directly to Supermalparit; but I have one other crazy idea: you could try renaming the metamorphous font file as Cantarell (I'd say start with renaming it as the fontcantarelltest.png) in the hope that the game can load the alternative font file instead.
BlueSteelAU Mar 3, 2018 @ 12:00am 
looks to me like its from a mod or something
there is no fontCantarelltest.png
the files are
cantarell_17.png
cantarell_17.fnt

no test in the names at all


in any towns file that i have the standalone version (freshly downloaded)
and my modded version towns++

both running fine over here on windows 10 64 bit
< >
Showing 1-7 of 7 comments
Per page: 1530 50