fonts separated with white-spaces are not supported
Original Launchpad bug 1817433: https://bugs.launchpad.net/openlp/+bug/1817433
Reported by: maarts (maarts).
Hi,
fonts separated with white-spaces are not supported under Linux. The css font-family description says:
"Note: If a font name contains white-space, it must be quoted. Single quotes must be used when using the "style" attribute in HTML."
In build_footer_css and build_lyrics_format_css is these information missing...
Here a short fix for both:
...
lyrics = '%s word-wrap: break-word; '
'text-align: %s; vertical-align: %s; font-family: %s; '
'font-size: %spt; color: %s; line-height: %d%%; margin: 0;'
'padding: 0; padding-bottom: %s; padding-left: %spx; width: %spx; height: %spx; ' %
(justify, align, valign, """ + theme_data.font_main_name + """, theme_data.font_main_size,
theme_data.font_main_color, 100 + int(theme_data.font_main_line_adjustment), padding_bottom,
...
lyrics_html = style % (item.footer.x(), bottom, item.footer.width(),
""" + theme.font_footer_name + """, theme.font_footer_size,
...
I'm a python noob, sorry...