summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2010-06-07 10:49:12 +0000
committertavmjong-free <tavmjong@free.fr>2010-06-07 10:49:12 +0000
commit9311f26aa7c215fff1793c03da20258f8f5b96ff (patch)
treeb6f417c051300279127b0abf6d0c867ac16438df /src/style.cpp
parentDon't write text-specific style attributes to non-text objects. (diff)
downloadinkscape-9311f26aa7c215fff1793c03da20258f8f5b96ff.tar.gz
inkscape-9311f26aa7c215fff1793c03da20258f8f5b96ff.zip
"Fix" for bug #583593 (Default tool styles are not loaded for new users).
(Call sp_desktop_set_style() with write_current = false.) Tweak superscript/subscript shifts/sizes. (bzr r9489)
Diffstat (limited to 'src/style.cpp')
-rw-r--r--src/style.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/style.cpp b/src/style.cpp
index b3cc370f9..2b5804671 100644
--- a/src/style.cpp
+++ b/src/style.cpp
@@ -1370,12 +1370,12 @@ sp_style_merge_baseline_shift_from_parent(SPIBaselineShift &child, SPIBaselineSh
child.computed = 0; // No change
} else if (child.literal == SP_CSS_BASELINE_SHIFT_SUB ) {
// Should use subscript position from font relative to alphabetic baseline
- // In mean time use values from OpenOffice and Adobe
- child.computed = -0.33 * pfont_size.computed;
+ // OpenOffice, Adobe: -0.33, Word -0.14, LaTex about -0.2.
+ child.computed = -0.2 * pfont_size.computed;
} else if (child.literal == SP_CSS_BASELINE_SHIFT_SUPER ) {
// Should use superscript position from font relative to alphabetic baseline
- // In mean time use values from OpenOffice and Adobe
- child.computed = 0.33 * pfont_size.computed;
+ // OpenOffice, Adobe: 0.33, Word 0.35, LaTex about 0.45.
+ child.computed = 0.4 * pfont_size.computed;
} else {
/* Illegal value */
}