From c4f3bccb598bb4e51e40ec08078cad9eb7fee2fa Mon Sep 17 00:00:00 2001 From: Jonathan Corwin Date: Sat, 28 Aug 2010 00:19:50 +0100 Subject: [PATCH] Problems with outlines in qtwebkit 533.3. Shadow colour and kerning --- openlp/core/lib/htmlbuilder.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/openlp/core/lib/htmlbuilder.py b/openlp/core/lib/htmlbuilder.py index 10db05c72..2fa7b0df0 100644 --- a/openlp/core/lib/htmlbuilder.py +++ b/openlp/core/lib/htmlbuilder.py @@ -343,7 +343,7 @@ def build_lyrics(item): shadow = u'display: none;' if theme: lyricscommon = u'width: %spx; height: %spx; word-wrap: break-word; ' \ - u'font-family: %s; font-size: %spx; color: %s; line-height: %d%%' % \ + u'font-family: %s; font-size: %spx; color: %s; line-height: %d%%;' % \ (item.main.width(), item.main.height(), theme.font_main_name, theme.font_main_proportion, theme.font_main_color, 100 + int(theme.font_main_line_adjustment)) @@ -369,13 +369,15 @@ def build_lyrics(item): valign = u'vertical-align:top;' lyrics = u'%s %s' % (align, valign) if theme.display_outline: + lyricscommon += u' letter-spacing: 1px;' outline = u'-webkit-text-stroke: %sem %s; ' % \ (float(theme.display_outline_size) / 16, theme.display_outline_color) if theme.display_shadow: - shadow = u'-webkit-text-stroke: %sem %s; ' % \ + shadow = u'-webkit-text-stroke: %sem %s; ' \ + u'-webkit-text-fill-color: %s; '% \ (float(theme.display_outline_size) / 16, - theme.display_shadow_color) + theme.display_shadow_color, theme.display_shadow_color) else: if theme.display_shadow: shadow = u'color: %s;' % (theme.display_shadow_color)