davedes
|
 |
«
Reply #30 - Posted
2013-07-25 11:43:00 » |
|
Does gdx-freetype support supersampling? If not, is there any freetype2 docs on it? I'd like to add it to my own tool.
|
|
|
|
SHC
|
 |
«
Reply #31 - Posted
2013-07-25 15:50:44 » |
|
@Sammidysam Can you test the new beta 2? The binaries are here. I've updated to .Net Framework 3 to access the new font related classes.
|
|
|
|
SHC
|
 |
«
Reply #32 - Posted
2013-07-25 15:53:44 » |
|
@davades
I don't know of libGDX. I'm not using it.
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Sammidysam
|
 |
«
Reply #33 - Posted
2013-07-25 18:51:12 » |
|
Window ran fine again. Last time I actually didn't test exporting the font which I really should have done. Sorry. This time I did, and I got a weird error. I also got an exported file, however. The error and the exported file are in the Pastebin links below. The Error: http://pastebin.com/DDBeWEJ0The Export: http://paste.fedoraproject.org/27922/78384137I'll keep the file until you review the error, as Fedora's Pastebin does not have a never expire option.  But calling "cat blah | fpaste" to upload makes it worth it.
|
|
|
|
Nate
|
 |
«
Reply #34 - Posted
2013-07-25 20:12:00 » |
|
Does gdx-freetype support supersampling? If not, is there any freetype2 docs on it? I'd like to add it to my own tool. Cool, I'll link your tool and the OP's tool on the wiki.  Any chance you want to take over Hiero?  For supersampling, render at a high resolution, then scale down. You can change the high resolution and how you sample when scaling down as a way to get varying levels of antialiasing.
|
|
|
|
SHC
|
 |
«
Reply #35 - Posted
2013-07-26 02:57:04 » |
|
@Sammidysam
That exception is thrown by Mono itself. It failed to display the message box. The font file is fully generated and worked for me when tested. Can you say what version of mono you have? It's running fine on Mono 2.8 for windows.
Can you try to export in the previous version?
|
|
|
|
SHC
|
 |
«
Reply #36 - Posted
2013-07-26 03:11:53 » |
|
@Nate Thanks for adding this tool to your wiki. But you've written "The FontPacker tool uses Java's font rendering." which is incorrect. It uses the .Net Framework's classes , and classes. The project is written in C#.
|
|
|
|
SHC
|
 |
«
Reply #37 - Posted
2013-07-26 04:14:55 » |
|
@Sammidysam These lines in the error you've posted ================================================================= Got a SIGABRT while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= |
Shows that there's an error in your mono installation probably. Could you reinstall mono and try again?
|
|
|
|
Nate
|
 |
«
Reply #38 - Posted
2013-07-26 11:04:11 » |
|
Oops! Sorry, it slipped my mind that it was .NET. Fixing!
|
|
|
|
SHC
|
 |
«
Reply #39 - Posted
2013-07-26 13:09:25 » |
|
Hurray! It's finally rendering italic fonts perfectly! Here's the screenshot  I'll upload this version after testing with other fonts.
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Sammidysam
|
 |
«
Reply #40 - Posted
2013-07-26 14:56:39 » |
|
My Mono version is 2.10.8, as listed here. It could be that my version is too old or that I do not have a Mono package installed that manages these fonts. I'm not sure which one it could be though. I have a lot of available mono packages. They are here. I'd rather not install them all if I don't need them, so are there any you want me to try to install and see if they make it work?
|
|
|
|
SHC
|
 |
«
Reply #41 - Posted
2013-07-26 15:25:14 » |
|
@Sammidysam Probably mono cannot create messagebox from background worker. Moved the messagebox outside the background thread in the new beta 3. The link is FontPackerBeta3.zipIf you get that error again, reopen the application and test the generated font file. Thanks for testing. I'll change the main post tomorrow morning.
|
|
|
|
Sammidysam
|
 |
«
Reply #42 - Posted
2013-07-26 17:21:58 » |
|
The error is now gone and it works completely fine.
|
|
|
|
SHC
|
 |
«
Reply #43 - Posted
2013-07-27 03:29:10 » |
|
@Sammidysam
It's because mono can only create controls or dialogs only on the starting thread. Glad it's working fine. Thanks for testing.
|
|
|
|
SHC
|
 |
«
Reply #44 - Posted
2013-07-27 04:42:29 » |
|
Could anybody recommend me of an opensource licence for this?
I'd like this tool to be used even in commercial apps for free.
|
|
|
|
SHC
|
 |
«
Reply #45 - Posted
2013-07-27 06:10:11 » |
|
I've licenced it with LGPL v3. Also written a Readme for GitHub. See the changes.
|
|
|
|
kpars
|
 |
«
Reply #46 - Posted
2013-07-27 06:52:37 » |
|
Use the GNU General Public License v3.
|
|
|
|
SHC
|
 |
«
Reply #47 - Posted
2013-07-27 13:13:20 » |
|
I had rewritten FontTester in Swing. Here's the screen shot. 
|
|
|
|
SHC
|
 |
«
Reply #48 - Posted
2013-07-29 15:05:30 » |
|
Could anyone point me on a tutorial on how to pack bitmaps into texture atlases? I don't want to load another library (like apache commons codec) to decode the images.
|
|
|
|
davedes
|
 |
«
Reply #49 - Posted
2013-07-29 16:28:44 » |
|
|
|
|
|
Herjan
|
 |
«
Reply #50 - Posted
2013-07-31 15:00:37 » |
|
So, can I use this with LibGDX, or not? An XML file oO?
|
|
|
|
SHC
|
 |
«
Reply #51 - Posted
2013-08-01 12:40:45 » |
|
@Herjan You can for sure use this with libGDX. Download the source from GitHub and compile the library. It requires in your classpath to compile and run. Then you can use it like 1 2 3 4 5 6 7 8
| PackedFont font = new PackedFont("MyPackedFont.fntpack");
java.awt.Image glyph = font.getGlyph('A');
xpos += font.getAdvanceWidth('A');
|
The only requirements are that you need to convert the to an OpenGL 2D texture and include Apache Commons Codec.
|
|
|
|
|
SHC
|
 |
«
Reply #53 - Posted
2013-08-02 15:50:33 » |
|
Now also exports in BMFont text format. Here's the new screenshot.  I'll update the source and binaries shortly.
|
|
|
|
SHC
|
 |
«
Reply #54 - Posted
2013-12-22 07:49:57 » |
|
I'm currently testing it on Mac OSX. Here are the screenshots. In MONO 3.2.3  In WINE with Microsoft's .NET 4.5  I don't know why the preview pane is not working in WINE version (But FontTester is working).
|
|
|
|
Drenius
|
 |
«
Reply #55 - Posted
2013-12-22 14:55:18 » |
|
What about adding the ability to add your own .ttf files?
|
|
|
|
|