From 9311f26aa7c215fff1793c03da20258f8f5b96ff Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Mon, 7 Jun 2010 12:49:12 +0200 Subject: "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) --- src/style.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/style.cpp') 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 */ } -- cgit v1.2.3