2D Toolkit Forum

2D Toolkit => Support => Topic started by: maureli on April 26, 2014, 06:05:38 pm

Title: Can't Create New Font
Post by: maureli on April 26, 2014, 06:05:38 pm
I'm using the latest version of GlyphDesigner and the latest version of 2DToolkit and attempting to create a new font using the "preparing a font" guide. The font seems like it will work; however, when I press commit, I get this error:

ArgumentOutOfRangeException: Cannot be negative.
Parameter name: length

Any help on this would be appreciated. Thanks.
Title: Re: Can't Create New Font
Post by: unikronsoftware on April 26, 2014, 07:27:57 pm
Can you post the font here please?
Title: Re: Can't Create New Font
Post by: maureli on April 26, 2014, 07:41:13 pm
It's attached here.
Title: Re: Can't Create New Font
Post by: unikronsoftware on April 26, 2014, 07:43:36 pm
I will need the font you exported from GlyphDesigner (i.e. the one you're importing into tk2d), not the fnt itself...
Title: Re: Can't Create New Font
Post by: maureli on April 26, 2014, 07:45:15 pm
That's what I exported from GlyphDesigner, along with a png of the font. Unless you're asking for the TTF.
Title: Re: Can't Create New Font
Post by: unikronsoftware on April 26, 2014, 07:47:27 pm
Got a bit confused there, where's the png?
Title: Re: Can't Create New Font
Post by: unikronsoftware on April 26, 2014, 07:48:37 pm
btw, I think the issue is with the space in the name... the file referenced in the .fnt is
Code: [Select]
file=" SteampunkTitle.png"Not sure why glyph designer is spitting out an additional space there...
Title: Re: Can't Create New Font
Post by: maureli on April 26, 2014, 07:51:46 pm
That did the trick. I removed the space and it's working fine. I'll send the GD support an e-mail about the issue. Thanks for the prompt help!