[PATCH] Profile: add white outline to all text

Lubomir I. Ivanov neolit123 at gmail.com
Fri Jun 28 15:56:25 PDT 2013


On 28 June 2013 23:30, Dirk Hohndel <dirk at hohndel.org> wrote:
>
> On Fri, 2013-06-28 at 16:36 +0300, Lubomir I. Ivanov wrote:
>
> From: "Lubomir I. Ivanov" <neolit123 at gmail.com>
>
> Goal: no blending between profile text and graph lines
>
> Qt doesn't seem to provide an easy-to-go solution in terms
> of styling the z-order of the pen and brush layers of a
> QAbstractGraphicsShapeItem (or alternatively pen offset),
> which is needed if for example one likes the pen not
> to cover the text fill.
>
> Calling QGraphicsSimpleTextItem->setPen() on small text can
> cover bigger portions of the text, as the pen ends on top of the
> fill and given the pen stroke path ends up scaling exactly
> at the fill path border but not on the outside, for example.
>
> Since we don't get quick control over that (and to avoid
> the issue in a naive way), we set the text as bold
> and the white outline lands over the "bold-ed" area of glyphs.
>
>
> So here is how that looks for me...
>
>
>
> While I appreciate the idea, I'm a bit torn on whether this is an improvement.
> Basically I would love an outline around the original characters on the left.
> But the massive thinning out of the characters that we get as a side-effect...
> I'm not sure that's better.
>

no idea how to make it similar to the GTK version unfortunately.
probably the method described in the patch comment will do better, but
i can't get it to work.

lubomir
--


More information about the subsurface mailing list