Search found 17 matches

by nburlock
Thu Oct 30, 2008 12:08 pm
Forum: Project Announcements
Topic: The Wall Street Money Machine
Replies: 4
Views: 1292

Hah, I was already mousing over the "delete" button before I started reading and realised this wasn't spam. ;) Thanks for not deleting it - it took me ages to type it up :lol: Though of course you'd probably have been better off figuring out the rules and implementation before getting thi...
by nburlock
Thu Oct 30, 2008 9:33 am
Forum: Project Announcements
Topic: The Wall Street Money Machine
Replies: 4
Views: 1292

The Wall Street Money Machine

I thought I'd post some details on a project that I've working on for a while, now that it's starting to take shape. Before I show a very dull screenshot, I thought I'd explain what it is that I'm trying to do. For a while now I've been watching the economic crisis in the US (and elsewhere) unfold. ...
by nburlock
Mon Oct 27, 2008 5:03 am
Forum: Project Announcements
Topic: IrrFontTool Linux implementation
Replies: 14
Views: 2032

Just uploaded a minor change to the patch to display a message box after font creation has finished that warns X11 users that their fonts may or may not be anti-aliased depending on system settings.
by nburlock
Sat Oct 25, 2008 12:02 pm
Forum: Project Announcements
Topic: IrrFontTool Linux implementation
Replies: 14
Views: 2032

A tangential finding was that, if Xft-powered anti-aliasing is on when you create a font, you have to enable alpha on the font, otherwise the bit-mapping occludes the semi-transparent pixels wholly and the font looks horrible in irrlicht. The same thing happens to fonts rendered in the Windows vers...
by nburlock
Sat Oct 25, 2008 10:15 am
Forum: Project Announcements
Topic: IrrFontTool Linux implementation
Replies: 14
Views: 2032

It appears that the anti-alias settings are system wide and cannot be overridden on a per-application basis. It turned on automatically on my system because I'm using an LCD monitor connected via DVI. Remember that all changes to /etc/fonts/local.conf are system wide and will be overridden by ~/.fon...
by nburlock
Sat Oct 25, 2008 6:58 am
Forum: Project Announcements
Topic: IrrFontTool Linux implementation
Replies: 14
Views: 2032

I recreated the patch and checked it against a fresh copy of the repo, so hopefully this one is OK. Xft is a layer on top of FreeType2 that provides the ability to use anti-aliasing which FreeType2 can't do. So something in the OS is controlling the anti-aliasing. I'll try playing with the font rend...
by nburlock
Sat Oct 25, 2008 1:27 am
Forum: Project Announcements
Topic: IrrFontTool Linux implementation
Replies: 14
Views: 2032

For anyone trying this out, please note that it seems that anti-aliasing can't be turned off even if the checkbox is not checked. On my system at least, Xft, which is used to render the fonts, ignores the anti-alias option when selecting a font and defaults it to true. Freetype2 is another font rend...
by nburlock
Sat Oct 25, 2008 1:08 am
Forum: Project Announcements
Topic: IrrFontTool Linux implementation
Replies: 14
Views: 2032

I've installed the ms fonts, but I can't reproduce the problem. Maybe I've got a different version of the fonts than you? I'm running Ubuntu 8.10. My version of Arial has 1187 characters according to the output from FontTool. Anyway, I've made two changes to the code. First, I've changed the check f...
by nburlock
Fri Oct 24, 2008 1:49 pm
Forum: Project Announcements
Topic: IrrFontTool Linux implementation
Replies: 14
Views: 2032

Thanks for the feedback! I suspect it's a feature of that particular font since I found a few of my fonts had zero width and zero height characters. I'm using the xOff of the character to work out it's width (line 525) - this is the distance from the left edge of the character to the left edge of th...
by nburlock
Wed Oct 22, 2008 9:17 am
Forum: Bug reports
Topic: [fixed]XML reader can't read files produced by XML writer
Replies: 24
Views: 5120

I've posted the info to the bug report, but I'm not going to post a patch - I've no idea what types are constant across all the different compilers and platforms Irrlicht supports :P
by nburlock
Wed Oct 22, 2008 4:58 am
Forum: Bug reports
Topic: [fixed]XML reader can't read files produced by XML writer
Replies: 24
Views: 5120

I mistyped the value of data32[0] in my previous post, it's actually 0x3C0000FFFE. char32 is defined as an unsigned long, which is eight bytes on my 64 bit system. That explains why this isn't working, because it's comparing the first 8 bytes of the file against a four byte value. The following code...
by nburlock
Wed Oct 22, 2008 12:19 am
Forum: Bug reports
Topic: [fixed]XML reader can't read files produced by XML writer
Replies: 24
Views: 5120

I'm running 1.4.2 I've tracked the problem down. It starts at line 573 of CXMLReaderImpl.h: char32* data32 = reinterpret_cast<char32*>(data8); Then, the following is defined a little further on: const int UTF32_BE = 0xFFFE0000; const int UTF32_LE = 0x0000FEFF; Two if statements are used to determine...
by nburlock
Tue Oct 21, 2008 4:31 pm
Forum: Bug reports
Topic: [fixed]XML reader can't read files produced by XML writer
Replies: 24
Views: 5120

The problem is happening inside the read method of IXMLReader. If I give it a four byte per char file (created by Font Tool), that function will fail. If I strip the extra 2 bytes out of each char in the XML file, then read will work. I've also noticed that Text Editor (Ubuntu's Wordpad equivalent) ...
by nburlock
Tue Oct 21, 2008 12:20 pm
Forum: Bug reports
Topic: [fixed]XML reader can't read files produced by XML writer
Replies: 24
Views: 5120

Re: XML reader can't read files produced by XML writer

rogerborg wrote:-fshort-wchar should force it to be 16 bits.
Great info, thanks for that.

I've logged it as a bug:

https://sourceforge.net/tracker2/?func= ... tid=540676
by nburlock
Tue Oct 21, 2008 12:04 pm
Forum: Project Announcements
Topic: IrrFontTool Linux implementation
Replies: 14
Views: 2032

I'm going to go ahead and log that wchar_t thing as a bug. I created a small hack to get around the problems with the XML writer. I was then able to test the Font Tool code and I'm happy with it, so I've posted it to the tracker as a patch. https://sourceforge.net/tracker2/?func=detail&aid=21842...