On 21/6/09 19:16, bulia byak wrote:
Fixed in 21639. Krzysztof: sp_desktop_apply_style_tool must use getInheritedStyle because these two tools inherit their style from a parent node.
Does anybody else now have difficulties with the style preferences of the text tool? Once I select a font face or font size different from the initial default (on OS X: 'Bitstream Vera Sans', 40; fallback 'Sans', 12), the text tool does not keep its preference settings for 'This tool's own style for new text objects'.
steps to reproduce:
1) Set preference to 'Create new objects with:' > 'This tool's own style', take style from selection (e.g. Fill: red, Stroke: None).
2) Quit and restart, select text tool and create a new text. Expected result: text object with 'Fill: red, Stroke: None'. Result: text object with 'Fill: red, Stroke: None'.
3) change font face (e.g. Courier New) or change font size (e.g. to 56), type new text. (important: change font/size before actually typing the new text, not to change an already entered text) Expected result: text object with 'Fill: red, Stroke: None'. Result: text object with 'Fill: None, Stroke: black'. Font style preferences still say 'Fill: red, Stroke: None' for new objects
4) quit and restart. create text object. Expected result: text object with 'Fill: red, Stroke: None'. Result: text object with 'Fill: None, Stroke: black'. Font style preference has been reset to 'Fill: Unset, Stroke: Unset' for new objects.
I could not find a way to keep a user defined style (fill/stroke) for new text that stays beyond the current session or even within the same session when changing font face/size. I always end up with an 'outlined' appearance of newly entered text or have to fight the reappearing fallback font 'Sans' with size 12.
'Last used style' seems to work as expected but I was more focused on testing the tool's own style.
Inkscape 0.46+devel r21674, OS X 10.5.7