[PATCH] Profile: add white outline to all text

Lubomir I. Ivanov neolit123 at gmail.com
Mon Jul 1 05:57:33 PDT 2013


as a side comment:
given that QPainterPathStroker already performs a possibly optimized
morphological dilation with an euclidean distance approximation, of
sorts, i don't see why the graphics part of Qt hasn't exposed to the
user yet control over where a QPen can be applied. instead of the
pen-growth-center-point lying exactly at a path, it can technically
grow inward (erode) or outward (dilate). in fact, a much easier (but
partial) solution would be to simply allow ordered drawing, where the
QPen can be bellow the QBrush fill, which can be seen is some vector
drawing software.

not having control over that is a bit of culprit when outlining
anything due to the loss of fill space. for better precision two
objects/paths have to be created and layered manually like the above
patch method does.

lubomir
--


More information about the subsurface mailing list