In _renderItem in src/display/drawing-text.cpp there is a conditional section under
if (_drawing.outline()) {
that never seems to execute. Oddly, give its name, it appears that what it would do if it was ever activated, would be to draw the glyphs and then fill them. (Not stroke them). A breakpoint was placed in there and Inkscape was run for a while, making edits, rotating, scaling, stretching, changing the formatting, converting to paths, but nothing caused execution to enter that section.
I give up - what is the action that makes a text "outline" active?
Thanks,
David Mathog mathog@...1176... Manager, Sequence Analysis Facility, Biology Division, Caltech
On 2014-02-05 19:07 +0100, mathog wrote:
In _renderItem in src/display/drawing-text.cpp there is a conditional section under
if (_drawing.outline()) {
that never seems to execute. Oddly, give its name, it appears that what it would do if it was ever activated, would be to draw the glyphs and then fill them. (Not stroke them). A breakpoint was placed in there and Inkscape was run for a while, making edits, rotating, scaling, stretching, changing the formatting, converting to paths, but nothing caused execution to enter that section.
I give up - what is the action that makes a text "outline" active?
Outline (wireframe) display mode (menu 'View > Display Mode > Outline ') renders all visible text with solid black fill and no stroke. The code snippet could be related to this display mode.
Regards, V
2014-02-05 20:15 GMT+01:00 su_v <suv-sf@...58...>:
On 2014-02-05 19:07 +0100, mathog wrote:
In _renderItem in src/display/drawing-text.cpp there is a conditional section under
if (_drawing.outline()) {
that never seems to execute. Oddly, give its name, it appears that what it would do if it was ever activated, would be to draw the glyphs and then fill them. (Not stroke them). A breakpoint was placed in there and Inkscape was run for a while, making edits, rotating, scaling, stretching, changing the formatting, converting to paths, but nothing caused execution to enter that section.
I give up - what is the action that makes a text "outline" active?
Outline (wireframe) display mode (menu 'View > Display Mode > Outline ') renders all visible text with solid black fill and no stroke. The code snippet could be related to this display mode.
Yes, drawing.outline() is true if we should draw in outline mode. This is a very fast drawing mode which draws only the shapes of objects in a thin stroke. It is intended to be useful when working on massive drawings with lots of filters which can be very slow to edit otherwise.
Regards, Krzysztof
On 07-Feb-2014 08:23, Krzysztof Kosiński wrote:
Yes, drawing.outline() is true if we should draw in outline mode. This is a very fast drawing mode which draws only the shapes of objects in a thin stroke. It is intended to be useful when working on massive drawings with lots of filters which can be very slow to edit otherwise.
Sounds like we probably don't want text decoration rendering in that mode. (Especially the complex ones with pattern fills and strokes.)
Thanks,
David Mathog mathog@...1176... Manager, Sequence Analysis Facility, Biology Division, Caltech
2014-02-08 2:39 GMT+01:00 mathog <mathog@...1176...>:
On 07-Feb-2014 08:23, Krzysztof Kosiński wrote:
Yes, drawing.outline() is true if we should draw in outline mode. This is a very fast drawing mode which draws only the shapes of objects in a thin stroke. It is intended to be useful when working on massive drawings with lots of filters which can be very slow to edit otherwise.
Sounds like we probably don't want text decoration rendering in that mode. (Especially the complex ones with pattern fills and strokes.)
Yes. In fact I don't think we render glyphs at all in this mode - just their bounding boxes.
However, to preserve good performance and still indicate decorated text, the decoration could be represented by a single unstyled line at the required position. (See e.g. outline rendering for raster images to get the idea.)
Regards, Krzysztof
participants (3)
-
Krzysztof Kosiński
-
mathog
-
su_v