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