[PULL REQUEST] GSoC Printing: part 4
gehadelrobey at gmail.com
Mon Jul 20 07:21:42 PDT 2015
On Jul 20, 2015 3:38 PM, "Lubomir I. Ivanov" <neolit123 at gmail.com> wrote:
> On 20 July 2015 at 16:34, Dirk Hohndel <dirk at hohndel.org> wrote:
> > On Mon, Jul 20, 2015 at 04:29:50PM +0300, Lubomir I. Ivanov wrote:
> >> On 20 July 2015 at 16:22, Dirk Hohndel <dirk at hohndel.org> wrote:
> >> > On Mon, Jul 20, 2015 at 03:48:32PM +0300, Lubomir I. Ivanov wrote:
> >> >> Part 4 of the new GSoC printing module from Gehad.
> >> >
> >> > I merged this.
> >> >
> >> >> ATM this is useable, but the stock templates aren't pretty yet; an
> >> >> thing on the TODO list is to get the already present templates to
> >> >> to what we in the previous print module (i.e. user-ready).
> >> >
> >> > Yes, the templates are really ugly :-)
> >> > But my biggest issue is that on my system (ArchLinux) I don't get any
> >> > useful text at all. It looks like all the text boxes are compressed
> >> > thin orange lines. I can tell from the samples that Gehad sent that
> >> > isn't how it is supposed to look... any idea what's wrong here?
> >> >
> >> seems to happen due to a font size of 0.
> >> i've already complained about that and Gehad said that i need to
> >> delete the local QSettings group (e.g. registry key on windows).
> >> once i've deleted the QSettings group and started Subsurface again the
> >> default font size of 9 worked as expected.
> >> not 100% sure why it happens but users should not encounter the issue.
> > Yeah, that's an interesting set of settings I have there:
> > [PrintDialog]
> > color_palette=0
> > color_selected=true
> > custom_color_1=#000000
> > custom_color_2=#000000
> > custom_color_3=#000000
> > custom_color_4=#000000
> > custom_color_5=#000000
> > font=0
> > font_size=0
> > line_spacing=0
> > print_selected=true
> > template_selected=0
> > type=0
> > Removing that fixed it.
> > Adding some special handling that refuses to accept a font_size of 0
> > not be a bad idea, but since regular users won't run into this (I assume
> > this is the result of a buggy intermediate version I must have tried?)
> > not to concerned.
> Gehad, if you are reading this...can we get a confirmation that users
> installing the new print module for the first time will not encounter
> the 0-sized font issue, also things like "font=0"?
I think this will happen to most of the users as I am using the old
QSettings group name, I will fix this by checking for zero values and
initializing them by default value.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the subsurface