Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Jenna on February 10, 2008, 12:58:27 pm

Title: Patch for linux printing crash uploaded
Post by: Jenna on February 10, 2008, 12:58:27 pm
I just uploaded a patch for bug #13054 (https://developer.berlios.de/bugs/?func=detailbug&bug_id=13054&group_id=5358), also described here (http://forums.codeblocks.org/index.php/topic,7757.msg58415.html#msg58415).

Patch (https://developer.berlios.de/patch/?func=detailpatch&patch_id=2369&group_id=5358)

The patch is tested with wxWidgets 2.8.7 on W2K and debian 64-bit and will be tested on debian 32-bit if .deb's are compiled.
Title: Re: Patch for linux printing crash uploaded
Post by: killerbot on February 11, 2008, 09:46:36 am
great work !!!!

I can confirm this works, finally I can print on linux.
Will commit soon ;-)
Title: Re: Patch for linux printing crash uploaded
Post by: killerbot on February 12, 2008, 10:31:47 am
something I have noticed is the following (printing on linux, I think on windows it does not happen, but will have to check) :

- the ; are put too shortly after the word the follow
- the ( are put too shortly after the word the follow , sometimes above the last character they follow  [Method()]
- the * are put too shortly after the word the follow , sometimes above the last character they follow [Pointer* ]
- the & are put too shortly after the word the follow , sometimes above the last character they follow [reference& ]

When printing in color you can sort of recover from this with your eyes ;-), but black on white is bad ....

Any ideas ?
Title: Re: Patch for linux printing crash uploaded
Post by: Jenna on February 12, 2008, 03:48:59 pm
I think there is a problem with getting the resolutions for the printer and therefore the Scaling of the DC.

If I turn off ScaleDC it works on Linux, but on Windows the output is somewhat small.

I can have a look at it during the week or the next weekend.

If I have a monospaced font with 8pt or no colour-changing in a line (e.g. in comments) everything looks fine.